Hello
I try to the id code protection of S5D9 with e2studio as this post
https://renesasrulz.com/synergy/f/synergy---forum/8996/id-code-protection
I set ID Code by configurator
and I added below code but it could't work well.
How can I use ID Code Protection.
I added below code in S5D9.ld
/* Initialized data section. */
.S5D9_OSIS_ADDRESS 0x0100A150 :
{
KEEP(*(.S5D9_OSIS_ADDRESS))
}
I added below code in hal_entry.c
BSP_DONT_REMOVE __attribute__((section(".S5D9_OSIS_ADDRESS" ))) const uint32_t g_id_code[] =
{
BSP_CFG_ID_CODE_LONG_1,
BSP_CFG_ID_CODE_LONG_2,
BSP_CFG_ID_CODE_LONG_3,
/* BIT 127:126 of OSIS are bits 31:30 */
/* of BSP_CFG_ID_CODE_LONG_4 */
/* Be very careful about the setting of bit 31:30 */
/* as you can lock the debugger out of the device */
BSP_CFG_ID_CODE_LONG_4,
};
Thanks.