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.
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