Debugging tool for mbed enabled microcontrollers, especially for NUCLEO-F303RE and STM32F042F6P6.
Diff: Debug.h
- Revision:
- 1:dbb9fcc20d07
- Parent:
- 0:e36b454cc2e6
- Child:
- 2:478ba8b83e3f
diff -r e36b454cc2e6 -r dbb9fcc20d07 Debug.h --- a/Debug.h Mon May 06 00:01:17 2019 +0000 +++ b/Debug.h Mon May 06 00:29:00 2019 +0000 @@ -57,6 +57,7 @@ * character = pc.getc(); * pc.printf("you have inserted %c\n\r",character); * var++; + * pc.breakpoint(__LINE__, 0x48000000); * wait(1); * } * } @@ -106,6 +107,13 @@ */ void breakpoint(int line_number, char name[20], float variable); + /** Perform one breakpoint and print one register value + * @param line_number Line number of the breakpoint + * @param address + * @param offset + */ + void breakpoint(int line_number, uint32_t address, uint32_t offset = 0); + /** Print formatted string to debug serial port * @param string * @param format (optional)