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

uVision: Memory Window Arithmetic

I'm sure I have seen / read something about this before, but I cannot now find that source.

I have added a variable to the Memory Window in uVision, "MyBuffer" for example.
How do I specify IN THE MEMORY WINDOW an offset to that variable?
For instance if 'MyBuffer' is a block of memory allocated to hold 1024 16bit values, and I am interested in watching the Memory location of the 512th (as well as the memory either side of it, so a 'Watch Window' will not suffice), how do I specify it?
I vaguely remembered something along the lines of;

MyBuffer+0x200

but the Memory window does not accept that as in input, (the memory window goes blank, and I receive the error tone).

What is the correct format for this?

Thanks.

Parents Reply Children
  • Please elaborate, whilst entering "&MyBuffer" (without the quotes) does work, specifying "&MyBuffer+0x02" does not seem to do anything useful. It does show a different memory location, but I cannot determine the correlation between the new memory location and the "0x02" offset that I specified.

    Thanks

  • I am afraid it is what it is. I'm not using the most recent uv4, but it seems that this "feature" has been left out for later. Try use your map file to determine buffer location, and insert offset from there...(or you can determine that using &).