cancel
Showing results for 
Search instead for 
Did you mean: 

Freeze in eeprom

mahmoud boroumand
Associate III
Posted on August 06, 2017 at 09:02

hello.

i use stm32f030p4. i use EEPROM emulation(save 20 byte) it's work until i add more code in my project.

when the code Increase  Although I dont have any error in my code but program freeze in ee_init(); and i have to delete some of my code.

what's problem?

Thanks

2 REPLIES 2
S.Ma
Principal
Posted on August 06, 2017 at 11:21

Maybe the eepron emulated memory segment should be preserved from reflashing when debugging? The eeprom memory area may need to be declared as unique segmeny in the linker config file. Inspect in debug mode step by step to find out the root cause.

Posted on August 06, 2017 at 15:08

Make sure the sectors used for the emulation don't overlap with those used for the code. Check linker script, scatter file, or target settings and defines.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..