View previous topic :: View next topic |
Author |
Message |
georpo
Joined: 18 Nov 2008 Posts: 281 Location: Athens, Greece.
|
DSPIC HEX FILE |
Posted: Tue Nov 18, 2014 7:34 am |
|
|
Hello,
I am using a DSPIC33FJ64GP802.
I would like to know if I place this in the code:
Code: | const int Test[]={125,126,127,128}; |
Can I find these values in the hex file so that I can modify them without having to re compile?
Thanks! _________________ George. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
georpo
Joined: 18 Nov 2008 Posts: 281 Location: Athens, Greece.
|
|
Posted: Thu Nov 20, 2014 1:19 am |
|
|
Hello and thanks for the reply.
I used Code: | #ROM 0XA000 = {0X0A,0X0B,0X0C} |
and I can see the values in the hex file.
Now, how can I read these values during runtime? _________________ George. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19513
|
|
Posted: Thu Nov 20, 2014 7:09 am |
|
|
Not as easily as a variable. You have to use the read_program_memory command.
Look at the #ORG solution, PCM_Programmer has already given. Makes the code a lot simpler.
You can also find 'where' a const is without ORG, by using 'label_address', which will tell you where it is, but this is only useable in the code. |
|
|
|