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.

0