C++ constructors that are running before the IAR DLIB lock initialization cause system to hang
Hi,
We are using the IAR compiler and Cube generated project on STM32L4+ for a new project we intend to code in C++.
Because C++ runs constructors of static objects before the main() function at an undetermined order the program hangs. I need to make sure somehow that the DLIB locks initialization function (generated by cube) runs before all the other constructors.
How can I set the order of execution for the constructors and move the DLIB initialization to be always the first one?
