char variables incorrectly displayed in debug on STM32H7
Wondering if anybody else seeing this behaviour on MacOS. To replicate create basic project for STM32H747I-DISCO (CM7 or CM4) and create a char variable with assigned value. In debug mode the value is always displayed as zero, but register and stack contents are correct. All other variable sizes such as uint16_t, uint32_t all OK and problem is not present on Windows11 installation. Crossworks version 4.10.2 with ST-LINK/V2-V3(V3.S11.J0). No cacheing or MPU enabled on STM32H7 and problem not present for any other MCU's I've tried.
Probably a bug but thanks for any feedback/suggestions in case there is a known fix!
void main(void) { char myChar = 'A'; // local variable window shows value as 0x00 myChar++; // value turns red but still displays 0x00 debug_printf("myChar = %c\n", myChar); // prints 'myChar = 'B' while(1); }
Please sign in to leave a comment.
Comments
0 comments