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

DISPLAY command does NOT show real value

Debuger : uVision 4, JTAG
MICOM : Cortex-M3

I hope to monitor continous values of transfering buffer during a communication.
I wrote a script like this and got below result,

func void mon(void)
{ while (1) { _sleep_(100); exec("d &mau08TransferBuffer[0], &mau08TransferBuffer[4]"); }
}

mon()
0x200012C0 00 00 00 00 00 .....
0x200012C0 00 00 00 00 00 .....
0x200012C0 04 C7 00 00 00 .....
0x200012C0 08 1F 00 00 00 .....
0x200012C0 08 1F 00 00 00 .....
0x200012C0 08 1F 00 00 00 .....

At this time, I tried to print values only when some changes in the array happened to remove duplicated value, so modified below,

func void mon(void)
{ { exec("d &mau08TransferBuffer[0], &mau08TransferBuffer[4]"); }
}

bs write mau08TransferBuffer[0],1,"mon()"
bl 0: (A WR 0x200012C0 len=1) 'mau08TransferBuffer[0]', CNT=1, enabled exec ("mon()")
g

0x200012C0 00 00 00 00 00 .....
0x200012C0 00 00 00 00 00 .....
0x200012C0 00 00 00 00 00 .....
0x200012C0 00 00 00 00 00 .....

The last result seems not to be real value in the array, I don't know why.
Why DISPLAY command won't work at write accessing to the array by BS command?