
Step 13.
Open stm32f0xx_mc_it.c file and replace the automatically generated EXTI0_1_IRQHandler function
with the custom on available in the USER CODE 1 section.
You can find it between the /* USER CODE BEGIN 1 */ and USER CODE END 1 */ comments at the
end of the file as shown below.
Figure 12.
Custom EXTI0_1_IRQHandler handler
Step 14.
Compile the project.
3.3
Starting from STM32CubeMX project
The package contains the STM32CubeMX project used for the code generation. Using this project, it is possible
to modify the configuration of all the hardware NOT directly related to the motor control algorithm.
Note:
The configuration of the peripherals related to the motor control algorithm should be modified though the
MotorControl Workbench only.
UM2711
Starting from STM32CubeMX project
UM2711
-
Rev 1
page 11/18