2025-06-28 12:51 AM
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:
I have to set new unused channel in DMA config again, disable old and regenerate code to solve this problem !
2025-06-28 2:55 AM
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.
2025-06-28 3:18 AM