2025-10-16 3:08 AM
[PN]: STM32G473CBUX
[VERSION]: 6.4.1
[TOOL]: Motor Control Workbench
[DETAILS]:In this design, which I tried to setup exactly as my previous working projects, the ASPEP comms code seem to have setup interrupts to occur on UART Rx and not Tx and Rx DMA is not setting flags to allow comms in check in systick handler, line 227 in "stm32_mc_common_it.c".
[EXPECTED BEHAVIOR]: On other projects setup (with eg STM32G431VBTX) in similar fashion, Tx interrupts occur in UART IRQ handler, DMA_TC flag is set for UART Rx.
[HOW TO REPRODUCE]: Compile from MCW6.4.1 to Stm32CubeMx to STMCubeIDE and run on custom hardware, but maybe you can check some other way why Tx and Rx DMA and interrupts have gotten swapped in this code compared to previous projects.