Hello,
I have a code that is running inside ADC ISR (interrupts every 20 us). It is running without any issues when ran from RAM, whereas there is an ISR overrun when it is run from flash (The code inside the ISR seems to take more than 20 us)
I checked the wait-state configuration inside the InitFlash() function (In the SysCtrl.c file). The RWAIT bit is set to 0x3 for a CPU frequency of 200MHz, which is our operating CPU frequency. The datasheet also says that the minimum wait-states need to be 0x3 for 200MHz clock.
Are any other changes that can be made to the configuration such that it doesn't lead to an ISR overrun?
Thanks.