Assistance Required for Unlocking and Erasing RA6M1 Microcontroller

Dear Renesas Support Team,


I am currently working with the Renesas RA6M1 microcontroller and have encountered an issue related to the ID code authentication. Unfortunately,

I am unable to establish a connection with the device using my J-Link debugger due to an incorrect or unknown ID code. Attempts to use the default ID code (FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) have also failed, and I am unable to proceed with programming or erasing the chip.

Below are the details of the issue:

Microcontroller: RA6M1
Toolchain: J-Link debugger (J-Flash V7.22)
Error Message: "SC32 (connect): Failed to authenticate debugger via IDCODE. Incorrect IDCODE? Failed to connect. Could not establish a connection to target."
Actions Taken:
Attempted to connect using the default ID code (FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF).
I would appreciate your guidance on the following:

Is there an alternative method to reset or erase the chip if the ID code is unknown?
Could you confirm if entering boot mode on the RA6M1 would allow me to bypass the ID code and perform a full chip erase?
Are there additional recovery steps or tools available for this situation?
Thank you for your time and support. Please let me know if you require further details or logs regarding the issue.

Looking forward to your assistance.

  • Hello  

    Thank you for reaching out. Based on your issue with ID code authentication on the RA6M1, you can attempt to clear the ID code using the ALeRASE command with Segger J-Link tools. This command will erase all flash memory (code, data, and option setting flash) and reset the ID code, allowing you to reconnect to the device.

    While the available ALeRASE script is designed for Synergy MCUs, both RA6M1 and Synergy MCUs use an Arm Cortex-M4 architecture, so this approach should work for your device as well. You will need to set the path to JLink.exe in the script and use the latest J-Link software version, available here.

    Additionally, entering boot mode will not bypass the ID code, but it may allow reprogramming in certain conditions. Let us know if you need further assistance in adapting the script for RA6M1. you can also refer this links
    (+) RA6M1/T1: Mass-erase not performed with ID code "ALeRASE" - Forum - RA MCU - Renesas Engineering Community

    Kind regards,

    GN_Renesas