cancel
Showing results for 
Search instead for 
Did you mean: 

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

TheImmortal
Associate II

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 !

 

 

2 REPLIES 2
STTwo-32
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

SW versions is the same, I attached IOC file.