UM2124
•
Middleware: the middleware provided in the X-CUBE-SPN7 and X-CUBE-SPN8
packages contains the motor control algorithm core: six-step library (6Step_Lib.c/h)
and interface files (stm32f302_ihm0xm1.c/h). The interface file includes the map of
STM32 MCU peripherals used (for instance, advanced TIMx, general TIMx, ADCx,
DACx, UART etc.) to operate with the MC six-step library. This file must be updated
according to the modification directly done or through STM32CubeMX software by the
user, if channels or internal peripherals are modified with respect to the default
configuration. At middleware level a serial communication based on UART via an
external PC terminal emulator has been included in the X-CUBE-SPN7 and X-CUBE-
SPN8 packages (see the UART_UI.c/h and
contents").
•
Examples: the X-CUBE-SPN7 and X-CUBE-SPN8 packages contain an application
layer for further code development. This folder is created with Cube MX software and
it also contains the main file for firmware initialization (peripherals, MC_6Step and
UART communication). In addition, a specific file (MC_SixStep_param.h) has been
added to provide the complete list of parameters for the six-step library at application
level. The stm32fxxx_it.c file contains the starting point for UART communication and
defines all interrupt handlers.
X-CUBE-SPN7 and X-CUBE-SPN8 software
Figure 18: X-CUBE-SPN8 folder contents
DocID029868 Rev 1
expansion for STM32Cube
Figure 18: "X-CUBE-SPN8 folder
21/39
Need help?
Do you have a question about the STM32 and is the answer not in the manual?
Questions and answers