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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

480 Views
renskessener
Contributor I

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

Tags (1)
0 Kudos
0 Replies