Skip to main content
Associate III
June 28, 2025
Question

Sometimes CubeMX do not generate code correctly, after config changes I getting undeclared errors

  • June 28, 2025
  • 1 reply
  • 336 views

Sometimes CubeMX do not generate code correctly, not always, but sometimes in initialization codes generated by CubeMX is missing declarations in peripheral settings for DMA with error "undeclared",  currently I got this problem after clocks configurations and code regeneration, there is missing TRANSFERALLOCATEDPORTSRC_GPDMACH1, TRANSFERALLOCATEDPORTSRC_GPDMACH2, TRANSFERALLOCATEDPORTSRC_GPDMACH3.... declarations:

TheImmortal_0-1751091955719.png

TheImmortal_1-1751091972854.png

I have to set new unused channel in DMA config again, disable old and regenerate code to solve this problem !

 

 

1 reply

STTwo-32
Technical Moderator
June 28, 2025

Hello @TheImmortal 

Thank you so much for reporting this behavior. Could you please share your .ioc file here so we can reproduce this behavior.

PS: please make sure that you are using the STM32CubeMX V6.14.1 and the STM32CubeIDE V1.18.1.

Best Regards.

STTwo-32

Associate III
June 28, 2025

SW versions is the same, I attached IOC file.

STTwo-32
Technical Moderator
June 30, 2025

I'm not able to reproduce this issue with your .ioc file, could you please give more details on how it can be reproduced.

Best Regards,

STTwo-32