Content originally posted in LPCWare by ld0d on Thu Mar 19 01:58:13 MST 2015
Quote: JohnR
Maybe you are not allowing enough time for the line SystemCoreClock = clock_multiplier * 12000000 ??
That shouldn't affect the math emulation library... right? I found the issue originally in code that was executed much later in the program.
Quote: JohnR
If you place your two lines at // TODO: insert code here would it make a difference??
Yeah, if it's C, you cannot do that (only constants can be defined there), and if it's C++, the calculation will be done before the main() function is reached.