This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ID code mismatched-RA2A1

Hi 

I enable the ID code mode into -Locked with ALL erase.

but even my code is OK it show error of ID mismatched




[locked by: IK_Renesas at 9:21 (GMT 0) on 19 Feb 2024]
  • if your ID code is FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0F

    you choose -Locked with ALL erase.

    the actual ID code generated is FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFCF

    b127, b126 of the id-code are set to '1' to ensure ALL erase.

    that correspond to b7,b6 of the last byte "0F" -> "CF"

  • Check on this link RA Family: ID code protection

    /* ID CODE: 00112233445566778899AABBCCDDEEff */
    #define BSP_CFG_ID_CODE_LONG_1 (0x33221100)
    #define BSP_CFG_ID_CODE_LONG_2 (0x77665544)
    #define BSP_CFG_ID_CODE_LONG_3 (0xBBAA9988)
    #define BSP_CFG_ID_CODE_LONG_4 (0xffEEDDCC)