Author Topic: STM32F429 eeprom emulation and how to protect flash  (Read 1743 times)

0 Members and 1 Guest are viewing this topic.

Offline trevwhiteTopic starter

  • Frequent Contributor
  • **
  • Posts: 930
  • Country: gb
STM32F429 eeprom emulation and how to protect flash
« on: December 13, 2017, 12:25:16 am »
HI

I am using the STM32F4 eeprom emulation library but I think the compiler is not aware of the flash being used for eeprom and so code is being placed in the flash in the same area as being used for eeprom.

I am using Atollic and at present I do not know how to tell the compiler/linker to not use FLASH_Sector_2 and Flash_Sector_3. Any ideas?

Trev
 

Offline krho

  • Regular Contributor
  • *
  • Posts: 223
  • Country: si
Re: STM32F429 eeprom emulation and how to protect flash
« Reply #1 on: December 13, 2017, 05:37:45 am »
You have to change the linker script. In the linker script in there you should add some "reserved" section which starts at the 0x80000000 + 1st sector size and lasts till the end of 3th sector. This should be enough info for you to google it out. Or you can wait for one that knows how to do it out of their head.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf