SPI and Dual UART Configuration with MC Workbench
Dear ST Community,
I am working on an STM32 motor control project using MC Workbench and would like to configure one SPI interface and two UART interfaces in addition to the motor control peripherals.
Is it possible to configure SPI and two UARTs while using MC Workbench?
I tried configuring these peripherals by modifying the generated .ioc file in STM32CubeMX. However, when I regenerate the project/code, some of the peripheral configurations are overwritten by the MC Workbench-generated configuration.
Could you please suggest the recommended approach for this use case? Specifically:
- Is there a supported way to configure SPI + two UARTs directly through MC Workbench?
- If not, what is the recommended method to add these peripherals without their configuration being overwritten?
- Should the peripherals be configured in the
.iocfile after MC Workbench code generation, or is there another recommended integration method? - Are there any specific USER CODE sections, middleware, or configuration files where I should add the initialization and application code?
I would appreciate any guidance or example for integrating additional peripherals with an MC Workbench-generated project.
Regards,
Prathmesh
