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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

500件の閲覧回数
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

タグ(1)
0 件の賞賛
0 返答(返信)