Debugging tool for mbed enabled microcontrollers, especially for NUCLEO-F303RE and STM32F042F6P6.
Diff: debug_serial.cpp
- Revision:
- 7:60a32302de22
- Parent:
- 6:1ee26b7b9c2f
- Child:
- 12:a8ab6e018422
--- a/debug_serial.cpp Thu May 09 18:48:42 2019 +0000 +++ b/debug_serial.cpp Thu May 09 20:42:07 2019 +0000 @@ -85,7 +85,7 @@ strcpy(var[2], var[1]); strcpy(var[1], var[0]); - sprintf(var[0],"Address 0x%8x Value 0x%8x", address,read_word(address, 0x0)); + sprintf(var[0],"Address 0x%8x Value 0x%8x", address - address%4, read_word(address - address%4, 0x0)); print_3_breaks(line_number); }