Debugging tool for mbed enabled microcontrollers, especially for NUCLEO-F303RE and STM32F042F6P6.

Revision:
6:1ee26b7b9c2f
Parent:
2:478ba8b83e3f
Child:
7:60a32302de22
diff -r e2e16ef72833 -r 1ee26b7b9c2f debug_serial.cpp
--- a/debug_serial.cpp	Mon May 06 21:25:29 2019 +0000
+++ b/debug_serial.cpp	Thu May 09 18:48:42 2019 +0000
@@ -81,11 +81,11 @@
 
 // perform one breakpoint and print register
 //------------------------------------------------------------------------------------------------------------------ 
-void Debug_serial::breakpoint(int line_number, uint32_t address, uint32_t offset){
+void Debug_serial::breakpoint(int line_number, uint32_t address){
 
     strcpy(var[2], var[1]);
     strcpy(var[1], var[0]);
-    sprintf(var[0],"Address 0x%8x   Value 0x%8x", address + offset,read_word(address, offset));
+    sprintf(var[0],"Address 0x%8x   Value 0x%8x", address,read_word(address, 0x0));
     print_3_breaks(line_number);
 
 }