Project for B-G431B-ESC1
I need some working project for B-G431B-ESC1. I was trying to use MotorControl Workbench (X-CUBE-MCSDK). There is a project for the target but it creates an absolutely useless project. Some non-existing header files, no main file included in the project.
I see what is the problem - I have to install STM32CubeMX. But I don't want to use HAL layer, I work with bare metal drivers (CMSIS).
When I try to compile the project I get - Fatal Error[Pe035]: #error directive: "Unknown target."
In the devices list (in IAR7 and IAR8) I see no STM32G4xx family.
Well. I compiled the project with V8.4.
But how to work with it?
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
/* Main routine for Electronic Speed Controller (STEVAL-ESC001V1) */
esc_pwm_control(&ESC_M1);
}where is the documentation?