CubeMX Generating Startup Functions in Incorrect Order
Hi, I ran into a bug a while back where some ADC reads I had set up weren't working. In the course of debugging I found that the ADCs only worked after I changed the order in which some automatically generated startup functions were called in order to initialize the DMA controller before the ADCs. However, whenever I make changes to my .ioc and generate code it regenerates these startup functions in the wrong order.
Why is this happening and how do I fix it?
This is the incorrect order they are generated in:

This is the order I have to change it to for the ADCs to work:

