Skip to content

Commit

Permalink
Add ThreadDebug serial port string
Browse files Browse the repository at this point in the history
To use, add this snippet on the top of your project

```
 #include <ThreadDebug.h>

 USBSerial SerialUSB1(false, "DebugPort");
 UsbDebugCommInterface  debugComm(&SerialUSB1);
 ThreadDebug            threadDebug(&debugComm, DEBUG_BREAK_IN_SETUP);
```
  • Loading branch information
facchinm committed Aug 27, 2020
1 parent 862e861 commit 197b1b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ envie_m7.bootloader.programmer=-f interface/stlink.cfg
envie_m7.bootloader.extra_action.preflash=stm32h7x option_write 0 0x01c 0xb86aaf0
envie_m7.bootloader.file=PORTENTA_H7/portentah7_bootloader_mbed_hs_v2.elf

envie_m7_thread_debug.name=Arduino Portenta H7 (ThreadDebug)
envie_m7_thread_debug.vid.0=0x2341
envie_m7_thread_debug.pid.0=0x025B
envie_m7_thread_debug.descriptor.0=DebugPort
envie_m7_thread_debug.hide=true
envie_m7_thread_debug.build.board=PORTENTA_H7_M7

##############################################################

envie_m4.name=Arduino Portenta H7 (M4 core)
Expand Down

0 comments on commit 197b1b8

Please sign in to comment.