Looking for help here, I've looked over all other forum posts, and followed everything I could find, but still getting crashes when trying to enable Spread Spectrum on a RT1160 MCU.
As you can see from the screenshots, I've moved fsl_clock.o to RAM as well as *flexspi.o to RAM.
You can see, using Segger Ozone, exactly where the crash occurs, along with the generated exception and exception register settings.
Any idea what's wrong here?
Although you've moved fsl_clock.o to RAM, the function SDK_DelayAtLeastUs() is located on fsl_common_arm.o, which is still flash resident. At least, all of the call chain that performs the change for the clock should be located on the internal RAM. This is why on AN12879 (How to Enable Spread Spectrum for RT Family) all of the code was loaded either on ITCM or DTCM.