lpcware

Locating Constant Variable in FLASH

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by mvinger on Sun Jun 23 21:23:28 MST 2013
I thought putting the following would create a 64-byte block (1 page) in FLASH.
It does not seem to always work.

[SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][B]const[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] FLASHPAGE[16] [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]__attribute__[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] ((aligned (64)))[/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#3f7f5f]
[SIZE=2][COLOR=#3f7f5f]Any ideas?
Thanks.
MTV2

[/COLOR][/SIZE][/COLOR][/SIZE]

Outcomes