Is it possible to control the order in which peripherals are initialized when using ConfigTools? I've run across a problem where I'm getting hard faults because GPIO is being initialized ahead of the RTC, and my GPIO interrupt code reads the RTC for debounce timing as well as measuring the length of a button press. If I manually edit the BOARD_InitPeripherals method to put the call to RTC_init() ahead of the GPIOn_init() calls, everything is happy. However, I don't see a way to control that from within the ConfigTools peripherals tab, and generated code seems to want to be in the order in which I originally added the peripherals.
This is only a problem just now because I recently moved from having user code set up the ports, to relying on the ConfigTools pin configuration tool. Previously the interrupts weren't being enabled until after ALL of the ConfigTools generated initialization code had run. I'd rather stick with having the ConfigTools be the authority on these settings, rather than overriding them in code.
I'm working with the FRDM-KL27Z development board, using MCUXpresso 11.2.0.