AnsweredAssumed Answered

How to define and initialise a struct at a absolute address in flash?

Question asked by Rens Kessener on Jul 2, 2016

I want to define and initialise a struct in flash at an absolute address.

The reason is that I need to see wether that struct is set by a download of the program into flash,

or it has been changed (by a flash-write) since it was downloaded before.

I know how to define a pointer to an absolute address.

I also found the following link:

https://mcuoneclipse.com/2012/11/01/defining-variables-at-absolute-addresses-with-gcc/

But I don't know how to use linker scripts.

 

Thanks in advance for the hepl.

 

Rens

Outcomes