So I found where it occurs, in one of the function calls inside the last function call in my bsp_initialize function near the beginning of main. I also noticed that if I add a function call earlier than the one that prints the error, then it errors one function call sooner. Could my systick_handler interrupt getting called a bunch of times cause this? Because other than interrupts, there is no multithreading or RTOS in this program.
Any help would be appreciated.
On a side note, can you add “uncheck all” and “check all” buttons to the “Instrument functions to record their time” profiling session options?