This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Load file to specific memory area

Hi
i try to use the debugger script in order to stimulate data into my ADC peripheral. this is the script i wrote:

/* Map the user specific memory space */
MAP S:0, S:0xFFFF READ WRITE

/* Store the content of the S: Space */
LOAD INPUTDAT.HEX S:0, S:0xFFFF

/* Define a global variable for indexing */
DEFINE unsigned int GetValIdx

/* Define a breakpoint at specific location */
BS 0xff000449, 1, "G_Data= ((100*_RBYTE (S:0 + GetValIdx++)+10*_RBYTE (S:0 + GetValIdx++)+_RBYTE (S:0 + GetValIdx++))<<2"
GetValIdx++

the problem is that although file "INPUTDAT.HEX" exists in the same folder where the project is located, the file is not loaded into the specific memory area S:

more than that, when i try to manually change the values in S: through the memory map window, my changes are ignored with the following error message:
*** error 57: illegal address (C:0x0001)

as mentioned before i try to change S:0x0001, not C:0x0001

0