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

SDK • Re: RP2040: running Systick simultaneously on each core result in *** PANIC *** Hard assert error

$
0
0
exception_set_exclusive_handler will panic if you set a different exception per core (as will the other _set_exclusive_ calls like irq_set_exclusive_handler, IIRC).

Just combine your 2 exception handlers into a single function and use "if (sio_hw->cpuid)" to switch logic between core 0/1. Register the same exception handler on each core, and your SYSTICK callback should run. We use this method on Arduino-Pico for cycle counting on both cores.

Statistics: Posted by earlephilhower — Tue Nov 18, 2025 6:35 pm



Viewing all articles
Browse latest Browse all 8093

Trending Articles