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

Revision:
14:22a3b68860af
Parent:
13:92533bcf6542
Child:
15:83d4dced2a28
--- a/debug_register.cpp	Mon May 13 08:59:45 2019 +0000
+++ b/debug_register.cpp	Mon May 13 11:04:54 2019 +0000
@@ -85,6 +85,9 @@
             pc.printf("\r\e[K\e[12;0H\r\e[K\e[32;40m use l or j to move the cursor, esc to delete value or enter to continue\e[97;40m");
             //pc.printf("\e[6;46H");
             address = modify_value(address, 17); // insert or modify actual address(starting in 17th column) to write register value on that address
+            address -= address%4;
+            pc.printf("\e[6;17H");
+            pc.printf("%8x",address);
             pc.printf("\e[12;0H\r\e[K\e[32;40m use l or j to move the cursor, esc to delete value or enter to continue\e[97;40m");  
             //pc.printf("\e[6;96H");
             reg = *((volatile unsigned int *)address); //read register value from address