Hi, All~
I am using the ra-fsp flash_hp example, but the R_FLASH_HP_Erase API does not work as FSP_ERR_CMD_LOCKED is returned during the operation.
I also tested it on EK-RA8M1, but the same error is returned and it does not work.
Please advise which part I should fix.
I created the project using FSP 5.8.0.
Hi RooneyJang ,
the RA8 MCU series has a security feature, which locks the flash memory. The Unit that manages the flash access is the FCU (Flash Control Unit) -> for more explaination see Chapter 49 of the Groups user manual RA8E1 Group User's Manual: Hardware (renesas.com). By observing the DFAE bit of the FASTAT register, you can see, if a data flash access violation occurred. other than that, please check out the chapter 49.11.1.3 Protection by Block Protect Setting.
Please also see this Application Note: RA8 MCU Quick Design Guide (renesas.com) - 8.1.4.2 Flash Block Protection. It is very helpful to understand, how the flash protection works.I hope this answer helps
best regards
PC_Renesas
When I access the RA8E1 Data Flash with mempy and try to read the data, I get a MemManage Fault and a BusFault as shown in the attached image. Both 0x27000000 and 0x37000000 are the same. Please explain how I can read the data from DataFlash Memory based on e2 studio.