Hello Ada community,
I have just published Chapter 5 of my Raspberry Pi Pico Ada tutorial series.
Chapter 5: Controlling an RGB LED with PWM
This chapter introduces a small reusable package Pico.Analog.RGB_LED and two example sketches:
- random colour changes
- smooth colour-wheel gradient
While developing the first sketch I ran into a puzzling issue that I would like to ask the community about.
I have added a full catch-all exception handler and then the program simply hangs or crashes when execution reaches the line:
Next := @ + Hold_Period;
delay until Next;
The same handler works correctly in the second sketch. I added debug output with Pico.UART_IO.Put_Line after every step and still see no exception at all.
Has anyone observed similar behaviour with the embedded_rp2040 runtime and delay until statements? Any hints or known issues would be greatly appreciated before I set up the full SWD debug bridge for deeper investigation.
You can read the complete chapter (including the commented-out handler) here:
The corresponding Alire crate is currently waiting in the moderation queue.
Thank you in advance for any help or suggestions!
Best regards,
Martin Krischik