Skip to content

Commit 73d4edb

Browse files
committed
Fix examples documentation for MRI libraries
1 parent 4994599 commit 73d4edb

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

libraries/KernelDebug/examples/KernelDebug/KernelDebug.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
To connect to the target, launch gdb with the following parameters
66
7-
arm-none-eabi-gdb --interpreter=mi2 -ex "set pagination off" --baud {230400} -ex "set target-charset ASCII" -ex "target remote {debug.port}" {project_name}.elf
7+
arm-none-eabi-gdb -ex "set pagination off" --baud {230400} -ex "set target-charset ASCII" -ex "target remote {debug.port}" {project_name}.elf
88
99
The baud rate needs to match the one provided in KernelDebug constructor, while {debug.port} depends on the operating system (eg. /dev/ttyUSB0 or COM15)
1010
*/

libraries/ThreadDebug/examples/ThreadDebug/ThreadDebug.ino

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
/* This example demonstrates how to include the ThreadMRI library which allows debugging of the Portenta H7
2-
with GDB via a serial interface.
1+
/* This example demonstrates how to include the ThreadMRI library which allows debugging of the Portenta H7 with GDB via a serial interface.
2+
3+
To connect to the target, launch gdb with the following parameters
4+
5+
arm-none-eabi-gdb -ex "set pagination off" --baud {230400} -ex "set target-charset ASCII" -ex "target remote {debug.port}" {project_name}.elf
6+
7+
The baud rate needs to match the one provided in UartDebugCommInterface constructor, while {debug.port} depends on the operating system (eg. /dev/ttyUSB0 or COM15).
8+
9+
If UsbDebugCommInterface is being used you can specify any baudrate.
310
*/
411

512
#include <ThreadDebug.h>

0 commit comments

Comments
 (0)