BTW I've tried this variant on RP2350 and it completely crashes the first core:
Error: [rp2350.dap.core0] clearing lockup after double fault
Polling target rp2350.dap.core0 failed, trying to reexamine
Info : [rp2350.dap.core0] Cortex-M33 r1p0 processor detected
Info : [rp2350.dap.core0] target has 8 breakpoints, 4 watchpoints
Info : [rp2350.dap.core0] Examination succeed
Error: [rp2350.dap.core0] clearing lockup after double fault
Polling target rp2350.dap.core0 failed, trying to reexamine
Info : [rp2350.dap.core0] Cortex-M33 r1p0 processor detected
Info : [rp2350.dap.core0] target has 8 breakpoints, 4 watchpoints
Info : [rp2350.dap.core0] Examination succeed
Code:
from machine import Timer, Pin, lightsleepfrom time import sleep_ms, ticks_ms, ticks_diffdef led_toggle(arg) : global count, t count = count + 1 if count > 5 : t.deinit() led.toggle()led = Pin("LED", Pin.OUT)count=0t=Timer(mode=Timer.PERIODIC, callback=led_toggle, freq=1)tick_before = ticks_ms()lightsleep(10000)tick_after = ticks_ms()led.value(False)print('slept: ', ticks_diff(tick_after, tick_before), ' ms')print('count: ', count)
Statistics: Posted by gmx — Mon Dec 16, 2024 11:37 pm