I want to store a array of real into a part of the flash memory.
I tried to do this by declairing both an array of real an an array of word and set it to the same adress
Code: Select all
var
LL : array [5] of real; absolute $80;
LLW : array [11] of word; absolute $80;
and to store with write_flash what adress do I have to choose there?
How I can find a usable adres?
For now my application compiles, but when I read some flash the controller crashes.
Does anybody know where to find the info, or does anybody made a unit to do this?
I'm using a PIC 24HJ128GP202 btw.
Or is there a way to change and store a const during runtime?
Thanks in advance