Skip to content

Commit 85fc498

Browse files
authored
Merge pull request #191 from rgrr/feature/189-rtt-cb-detection
* RTT state machine * better detect multiple RTT_CB
2 parents c37a753 + 528afcd commit 85fc498

File tree

2 files changed

+261
-161
lines changed

2 files changed

+261
-161
lines changed

src/main.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#if OPT_PROBE_DEBUG_OUT_RTT
3636
#include "pico/stdio/driver.h"
3737
#endif
38+
#include "pico/multicore.h"
3839

3940
#include <stdio.h>
4041
#include <stdbool.h>
@@ -521,6 +522,12 @@ void usb_thread(void *ptr)
521522

522523
int main(void)
523524
{
525+
#if configNUMBER_OF_CORES != 2
526+
// this is actually just for debugging the probe firmware running with just one core (good for pyocd)
527+
// allow to run TIMER0 even in debug pause which would otherwise be inhibited because TIMER0.DBGPAUSE=7
528+
multicore_reset_core1();
529+
#endif
530+
524531
board_init();
525532
tusb_init();
526533
ini_init(); // for debugging this must be moved below cdc_debug_init()

0 commit comments

Comments
 (0)