Store a variable in PSoC 5LP flash at a fixed address

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

cross mob
ShKr_3646021
Level 2
Level 2
First like received 10 replies posted 5 replies posted

Hi,

I have been working on a project using PSoC 5 LP. I am currently using EEPROM to store a few variables. Does any one have any idea as to how to store a variable at a particular address in flash on PSoC 5LP? We are trying to do this for a particular reason. Any pointers are appreciated.

Thanks in advance!

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear ShKr-san,

1. How do I declare a fixed address? 

This is described in the Em_EEPROM Component Datasheet.

You can access the Datasheet from the Config window of Em_EEPROM component.

Click the left - bottom [Datasheet] button.

001-Em_EEPROM_Config.JPG

In the page 3 of the Datasheet is "Placing EEPROM Storage at Fixed Address" and in the steps of this chapter, there is a process of copying original linker control file "cm3gcc.ld" to "custom_cm3gcc.ld".

Just in case, I zipped and attached my "custom_cm3gcc.ld" to my original response.

And for making things sure, I attach the "Datasheet" of Em_EEPROM, too.

Best Regards,

14-Jul-2021

Motoo Tanaka

View solution in original post

0 Likes
8 Replies