Skip to main content
mahmoud boroumand
Associate III
August 6, 2017
Question

Freeze in eeprom

  • August 6, 2017
  • 2 replies
  • 673 views
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

    This topic has been closed for replies.

    2 replies

    S.Ma
    Principal
    August 6, 2017
    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.

    Tesla DeLorean
    Guru
    August 6, 2017
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..