how can I reserver some memoy in XMC1404´s flash are for my Data ? ( apart to emulate E2prom please)

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

cross mob
maes_4835196
Level 1
Level 1
25 sign-ins 10 sign-ins 5 sign-ins

XMC1404

0 Likes
1 Solution
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

You can modify the linker file to make sure that some space will be left for your own data and some other sections are not overwriting that area.

Best Regards,
Vasanth

View solution in original post

0 Likes
3 Replies
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

You can modify the linker file to make sure that some space will be left for your own data and some other sections are not overwriting that area.

Best Regards,
Vasanth

0 Likes
maes_4835196
Level 1
Level 1
25 sign-ins 10 sign-ins 5 sign-ins

HI,  thanks  for the  answer .  

SO,  How  can  I do that? ,  which  could be  right scripting  in linker  file to reserve 8 kbytes  for  my own  data in X;C1404-Q048X0128 ? 

is  this  command  the  rigth  one ?,  other ?

MEMORY 
  {
    name [(attr)] : ORIGIN = origin, LENGTH = len
    ...
  }
some example hot to do that would be welcome.
thanks
Maes

 

0 Likes
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Yes, Additionally you can make use of the XMC_Flash_XX apis. This example coudl be also helpful. 

https://github.com/Infineon/mtb-example-xmc-flash-program

Best Regards,
Vasanth

0 Likes