Hi ,
We were using vee flash example code to test it on EK-RA8D1 board but I am facing the following error. is there any data flash corruption or lock? We can download a program inside using link but not able to access the vee flash. I am using latest fsb example of EK-RA8D1
is there a way we can reset a data flash and try again. how to handle such happens on the field
regards,
Jeyakumar R
00> This example project demonstrates basic functionalities of vee flash driver00> on Renesas RA MCUs based on Renesas FSP. Based on User input, EP performs :00> 1. Write and Read operations on different Record_ID's for different data types.00> 2. Format, GetStatus, Refresh operations can also be performed on vee flash.00> On successful completion of each operation, success message will be printed00> on RTT viewer. Error and info messages will be printed on JlinkRTTViewer.00> 00> 00> 00> Vee flash Main Menu options:00> 1. Enter 1 for Write operation.00> 2. Enter 2 for Read operation.00> 3. Enter 3 for Format operation(Format should only be00> used to erase the entire data flash used by VEEPROM).00> 4. Enter 4 for StatusGet operation.00> 5. Enter 5 for Refresh operation.00> User Input: < 400> [ERR] In Function: vee_status_get_operation(), 00> ** RM_VEE_FLASH_StatusGet API FAILED **00> [ERR] In Function: handle_error(), 00> ** RM_VEE_FLASH_Close API Failed ** 00> 00> ** StatusGet Operation Failed **00> 00> Returned Error Code: 0x7 00> 00> ******************************************************************00> * Renesas FSP Example Project for vee_flash Module *00> * Example Project Version 1.0 *00> * Flex Software Pack Version 5.4.0 *00> ******************************************************************00> Refer to readme.txt file for more details on Example Project and00> FSP User's Manual for more information about vee_flash driver00> 00> This example project demonstrates basic functionalities of vee flash driver00> on Renesas RA MCUs based on Renesas FSP. Based on User input, EP performs :00> 1. Write and Read operations on different Record_ID's for different data types.00> 2. Format, GetStatus, Refresh operations can also be performed on vee flash.00> On successful completion of each operation, success message will be printed00> on RTT viewer. Error and info messages will be printed on JlinkRTTViewer.00> 00> 00> 00> Vee flash Main Menu options:00> 1. Enter 1 for Write operation.00> 2. Enter 2 for Read operation.00> 3. Enter 3 for Format operation(Format should only be00> used to erase the entire data flash used by VEEPROM).00> 4. Enter 4 for StatusGet operation.00> 5. Enter 5 for Refresh operation.00> User Input: < 3(Connection lost)00> 00> ******************************************************************00> * Renesas FSP Example Project for vee_flash Module *00> * Example Project Version 1.0 *00> * Flex Software Pack Version 5.4.0 *00> ******************************************************************00> Refer to readme.txt file for more details on Example Project and00> FSP User's Manual for more information about vee_flash driver00> 00> This example project demonstrates basic functionalities of vee flash driver00> on Renesas RA MCUs based on Renesas FSP. Based on User input, EP performs :00> 1. Write and Read operations on different Record_ID's for different data types.00> 2. Format, GetStatus, Refresh operations can also be performed on vee flash.00> On successful completion of each operation, success message will be printed00> on RTT viewer. Error and info messages will be printed on JlinkRTTViewer.00> 00> 00> 00> Vee flash Main Menu options:00> 1. Enter 1 for Write operation.00> 2. Enter 2 for Read operation.00> 3. Enter 3 for Format operation(Format should only be00> used to erase the entire data flash used by VEEPROM).00> 4. Enter 4 for StatusGet operation.00> 5. Enter 5 for Refresh operation.00> User Input: < 500> [ERR] In Function: vee_refresh_operation(), 00> ** RM_VEE_FLASH_Refresh API FAILED **00> [ERR] In Function: handle_error(), 00> ** RM_VEE_FLASH_Close API Failed ** 00> 00> ** Refresh Operation Failed **00> 00> Returned Error Code: 0x7
I am using renesas EK--RA8D1 EVK. Please check flash options
Target device : R7FA8D1BHECBD
Connecting the tool J-Link Firmware: J-Link OB-RA4M2 compiled Jul 3 2024 17:03:13Tool : J-Link (SEGGER J-Link (unknown)), Interface : SWDConnecting to the target deviceSetting the target deviceSetting the target deviceCommunication speed : 12.5 MHzSignature: Device: R7FA8D1BHECBD Boot Firmware Version: V3.6.32 Device Unique ID: 4E4B2E924CC24E36305034362D145F8D Device Code: 03 Current state: OEM_PL2 Current Authentication Level: AL2 AL2 Key Injection: No AL1 Key Injection: No RMA Key Injection: No
Reading data [Flash Options] Option Information : BoundaryOption Information : DLM StateOption Information : Anti-Rollback Counter SettingsOption Information : Lockbit for OptionOption Information : Security
Verifying data [Flash Options] Option Information : AL2 Key
Verifying data [Flash Options] Option Information : AL1 Key
Verifying data [Flash Options] Option Information : RMA KeySetting the target device
Disconnecting the toolOperation completed.
Hi,
Can you initialize the RA8D1 first then test again?
BR,
NP_Renesas
Also you can do it in e2studio:
https://www.renesas.com/us/en/document/apn/renesas-ra-security-design-arm-trustzone-ip-protection