Skip to content

I really need to disable RP2040 reset via baud rate in Arduino IDE (touch1200) #2794

Answered by earlephilhower
ea4eoz asked this question in Q&A
Discussion options

You must be logged in to vote

Check (and comment) out:

static void CheckSerialReset() {
if (!_rebooting && (_bps == 1200) && (!_dtr)) {
if (__isFreeRTOS) {
__freertos_idle_other_core();
}
_rebooting = true;
// Disable NVIC IRQ, so that we don't get bothered anymore
irq_set_enabled(USBCTRL_IRQ, false);
// Reset the whole USB hardware block
reset_block(RESETS_RESET_USBCTRL_BITS);
unreset_block(RESETS_RESET_USBCTRL_BITS);
// Delay a bit, so the PC can figure out that we have disconnected.
busy_wait_ms(3);
reset_usb_boot(0, 0);
while (1); // WDT will fire here
}
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ea4eoz
Comment options

Answer selected by ea4eoz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants