Can anyone see what I'm doing wrong here?
I've got a project that's (now) rather large.
I've defined a buffer that's 80 bytes long,
As can be seen from above the buffer shows in variables as correct and the data memory used is 975.
If I now reduce the size of the buffer to 40 (or any other number) it still shows the same in variables,
But the data memory used has reduced to 935 - 40 bytes less. But the variable window still shows it as 80 bytes.
What is more worrying is I can write to the 79th byte of the buffer - yes I wrote 0x55 there.
I've tried everything - deleting buff from variables, renaming it and putting it back - still shows as 80 bytes long.
I'm using the simulator as I currently don't have the hardware.
Sorry about hiding the project name etc but it's obvious who the client is if I don't.
I have a line in the code, sprintf(buff,"TST %3F",2.345); with a breakpoint after it but buffer stays empty.
Thanks,
Mike.