Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8374

General • Re: RP2350 USB CDC

$
0
0
While I was creating an example project top demonstrate the issue I discovered that it appears to be related to the way my code is doing a software reset.

Code:

// Patterned after CMSIS NVIC_SystemReset__attribute__((__noreturn__)) static inline void system_reset() {    __DSB(); /* Ensure all outstanding memory accesses included         buffered write are completed before reset */             scb_hw->aircr = ((0x5FAUL << 16U) | (1UL << 2U));        __DSB(); /* Ensure completion of memory access */        for (;;) {        __asm volatile("nop");    }}
This worked fine with the RP2040 but not the RP2350

Statistics: Posted by MichaelM01 — Wed Sep 24, 2025 7:46 pm



Viewing all articles
Browse latest Browse all 8374

Trending Articles