This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Q: I have just ported my code from internal RAM to internal flash. The execution is much slower from flash. Why is this occurring? How can I speed-up performance of code running from Flash memory?
A:
Note: This answer applies to devices with F05 flash. Refer to: [FAQ] F05 Flash: Which C2000 devices have "F05 flash"?
The flash hardware requires wait-states for proper code execution. As a result performance compared to zero wait-state RAM will be slower. Time critical code can be copied from flash to RAM at run-time for a performance boost. There are two methodologies for this.
In addition, check your code to make sure the flash wait-states are initialized properly and the prefech buffer is enabled. Refer to Running an Application from Flash (spra958) and examples related to flash in: C2000Ware_<version>\device_support\f<device>\docs\
For more F05 related FAQs refer to [FAQ] F05 Flash: Frequently Asked Questions