2019-10-22 03:04 AM
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?
2019-11-18 12:44 PM
On the release notes it says:
....
"Motor Control Projects configurations using an STM32L4 device do not work if generated using the LL drivers. Using the HAL ones is OK."
....
2019-11-29 05:41 AM
Hello,
The documentation can be find here :
>But I don't want to use HAL layer, I work with bare metal drivers (CMSIS).
Our MCSDK is based on Low level drivers that are part of STM32Cube delivery. STM32Cube delivery contains both LL and HAL drivers.
The tool generator allow you to generate the project for Low Level driver for the initialization code (main.c)
If you do not want to use Low Level driver (that are pretty close to CMSIS by the way), we do not have solutions as our library will not compiled without LL headers.
As the main usage we do with LL is to access peripheral registers, you can substitute each call to LL function by the CMSIS equivalent. But as the function are static inline, you will not save any MIPS nor memory footprint.
Regards
Cedric
2020-02-16 11:33 PM
As I understand I should apply PWM signals on the corresponding pin in order to run a motor. And how do I do it in the code, without an external PWM signals?
2021-06-21 11:14 PM
The question has been set only to the "STM32 Motor Control" topic (the question is only about the STM32 MC SDK).
Best regards