Hello,
Is there a demo application available that demonstrates how we can read/write to the on-chip flash?
Also, what are the considerations for making sure we don't overwrite the burned application image?
Thanks.
Ubaid
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.
Hello,
Is there a demo application available that demonstrates how we can read/write to the on-chip flash?
Also, what are the considerations for making sure we don't overwrite the burned application image?
Thanks.
Ubaid
Ubaid
Pls find an example for the F021 flash API which is picked from the following thread.
Attached is a code snippet which provides a simple example of performing write, read and erase operations on Bank1.
The example code performs the following steps
1. Programs 32 bytes to Bank 1 (Start Address : 0x00200000)
2. Reads back first 4 bytes and compare with the data programmed to see if it matches.
3. Erases the same sector (Start Address : 0x00200000)
NOTE: Kindly create your own configuration and just use the code snippet targeting your device since the example project from the above thread is targeted for RM57. You also need to choose the correct F021 Flash API library (F021_API_CortexR4_LE_V3D16.lib) for your target.
Best Regards,
Siddharth
Hi Ubaid,
The bootloader has one file for performing flash read/write/erase. The file name is bl_flash.c. Please download bootloader from this link:
Regards,
QJ