XMC4200 :flash usage for EEPROM emulation

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

cross mob
User11185
Level 1
Level 1
I would have some clarifications about the memory flash usage for eeprom emulation working with an XMC4200 having 256Kb of program flash:

Is the following memory configuration allowed ? I have tried it but without success 😞

64kB for bootloader starting at address C000000
32kB for EEPROM emulation starting at address C010000 (sector S4 and S5)
160 kB for the application firmware starting at address C018000

At the contrary the following configuration works :

64kB for bootloader starting at address C000000
64kB for EEPROM emulation starting at address C010000 (sector S4 ,S5, S6 and S7)
128 kB for the application firmware starting at address C020000

I would prefer the first configuration to have more memory for the application

Thank you for the help
0 Likes
3 Replies
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

What do you mean by "without success"? Anyway it is recommend the second option because a logical sector erase operation disturbs flash cells in adjacent logical sectors.

Regards,
Jesus.
0 Likes
User11185
Level 1
Level 1
I will check again in detail what was the problem with first option.

When you say "because a logical sector erase operation disturbs flash cells in adjacent logical sectors" ; could you confirm that it is true only for cells in the same physical sector ?
In other words : if sector S7 is erased, some cells in sector S6 could be disturbed but not in sector S8 because it is in a different physical sector. Isn't it?
Thank you
Enzo
0 Likes
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi Enzo,

The disturb occurs only among the adjacent logical sectors in the same physical sector.



Regards,
Jesus
0 Likes