We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
Hi well, i made some progress, yet i have some unsolved issues. i managed to manually change values in memory S: the main point is that i have a file (inputdat.hex) with data i want to locate in S: starting 0x0000 till 0x1000. i use the save command (it should be save, not load as mentioned above) as was explained in the example i saw (attached in the previous mail above). i can't see any change in S: all memory values remain 00 as they were before the command. what should i do in order to load the desired data file into the memory? thnx Meir