The codeuwTickPrio = TICK_INT_PRIORITY;is just copied from __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)Seems like generated new HAL_InitTick just miss the same default initialization
hmm...why not use standard c/c++ assotiation?1) add new my_main.hpp:#ifdef __cplusplusextern "C"{#endif void my_cpp_main(void);#ifdef __cplusplus}#endif2) add new my_main.cpp:#include <my_main.hpp>void my_cpp_main(void){ // YOUR C++ "MAIN" CODE for(;...
Not fixed yet.The same, as https://community.st.com/s/question/0D50X0000C6duToSQI/halnvicsetpriority-assert-issue-and-incorrect-preempt-priority-value-for-the-stm32f4-stm32g4-?t=1621848277288Manual fix is manually add somewhere in main()uwTickPrio = ...
This fix should be committed into the CubeMX generator, But right now the user is forced to add somewhere in main(): uwTickPrio = TICK_INT_PRIORITY;before calling SystemClock_Config(); in USER CODE BEGIN 1orUSER CODE BEGIN Initblocks