公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Jonson
Level 3
Level 3
50 sign-ins 10 questions asked 25 replies posted

Hi,experts:

When debugging Infineon example "Flash_Programming_1_KIT_TC334_LK", I found that when I used the default parameters, Flash can be erased normally, but when I changed the initial address of erase from 0xA00E0000 to 0x80080020, I found that the erase seemed to fail, I think it may be caused by the macro definition "#define RELOCATION_START_ADDR (0x70100000U)", please tell me what this macro definition means, and how to solve the problem here, thank you!

0 点赞
1 解答
Jeremy_Z
Moderator
Moderator
Moderator
1000 replies posted 250 sign-ins 100 likes received

Hi @Jonson ,

In my opinion, the below comment has indicated the usage of the macro definition, in a other word, the flash operation is copied to the address range before being called.

/* Definition of the addresses where to relocate the erase and program routines, given their reserved space */

BR,
Jeremy

在原帖中查看解决方案

0 点赞
2 回复数
Jonson
Level 3
Level 3
50 sign-ins 10 questions asked 25 replies posted

I found that I started at address 0x80080000 and then started at address 0x80080020 and it worked. My guess is that Flash can only be erased from the start of a page, and not from other parts of a page.

0 点赞
Jeremy_Z
Moderator
Moderator
Moderator
1000 replies posted 250 sign-ins 100 likes received

Hi @Jonson ,

In my opinion, the below comment has indicated the usage of the macro definition, in a other word, the flash operation is copied to the address range before being called.

/* Definition of the addresses where to relocate the erase and program routines, given their reserved space */

BR,
Jeremy

0 点赞