Skip to content

rp2040,rp2350: Don't enable interrupts during Initialize_Board#28

Merged
damaki merged 2 commits into
mainfrom
topic/fix-27
May 9, 2026
Merged

rp2040,rp2350: Don't enable interrupts during Initialize_Board#28
damaki merged 2 commits into
mainfrom
topic/fix-27

Conversation

@damaki

@damaki damaki commented May 9, 2026

Copy link
Copy Markdown
Owner

The runtime does not expect interrupts to be enabled at this point, and the runtime will enable interrupts later once everything else is initialized. Having interrupts trigger early can cause a crash since the Interrupt_Wrapper will try to change task priorities before threads are initialized.

Also added a test to verify that exception propagation works correctly, since the original report on the Ada forum indicated that their problem only occurred when Ada.Exceptions was used. Though this turned out to be a red herring in the end.

Fixes #27

damaki added 2 commits May 9, 2026 19:31
The runtime does not expect interrupts to be enabled at this point,
and the runtime will enable interrupts later once everything else
is initialized. Having interrupts trigger early can cause a crash
since the Interrupt_Wrapper will try to change task priorities
before threads are initialized.

Fixes community-bb-runtimes#27
@damaki damaki self-assigned this May 9, 2026
@damaki damaki merged commit 34484c9 into main May 9, 2026
2 checks passed
@damaki damaki deleted the topic/fix-27 branch May 9, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RP2040: HardFault during startup

1 participant