I am having issues getting my application to run correctly with the CSM turned on. I've identified a line of code that works with the CSM unlocked, and always returns 0 when the CSM is locked.
float value = (float)function_returning_long();
When I step through this, there is a line in the disassembly:
767FF890 LCR 0x3ff890
As this address is inside the Boot ROM, I'm guessing I'm somehow violating the security rules. I dont quite understand why, since this is all happening in local variables, on the stack, which is in unsecured RAM.
In my map file, 0x3ff890 is L$$TOFS
I also have several other calls to functions in the Boot ROM.
Is it possible to link these functions to Flash or RAM?
Ive looked at several other posts that reference this general idea, but I'm struggling with the Linker syntax.