Page 1 of 1

RP2040 SIO Help

Posted: Fri Oct 10, 2025 10:01 am
by robert_o
Hello everybody, i am starting with a RP2040 and i have set up my build system to output .uf2 files. I use ChibiStudio with ChibiOS stable 21.11. I changes the makefile accordingly and compiled the
ChibiStudio/chibios_stable-21.11.x/community/testhal/RP/RP2040/RT-RP2040-PICO-SERIAL
project and it works fine. I also tested the USB-> Serial Converter with the hello_uart program from pico-examples. I wanted to test the
chibios_stable-21.11.x/community/testhal/RP/RP2040/RT-RP2040-PICO-ADC
because of the SIO example but it doesn't work. I had to remove sioStartOperation(&SIOD0, NULL); because it is only used with chibiOS 21.6 but i think something else is missing. I hve the USB->UART connected to GPIO1 and 2 just like the example from pico-examples.
I would really appreciate any help.
Thanks,
robert.

Re: RP2040 SIO Help

Posted: Fri Oct 10, 2025 3:14 pm
by Giovanni
Hi,

There is a community channel on our Discord, I recommend asking there.

BTW 21.6 is quite old and unsupported.

Giovanni

Re: RP2040 SIO Help

Posted: Mon Oct 13, 2025 7:21 am
by robert_o
Thanks i will try.
I am using 21.11 but the examples in the community folder are for 21.6. I think that's the problem.
--robert

Re: RP2040 SIO Help

Posted: Fri Oct 17, 2025 9:07 am
by robert_o
Just to write the solution here:

Code: Select all

  /*
   * Setting up GPIOs.
   */
  palSetLineMode(0U, PAL_MODE_ALTERNATE_UART);
  palSetLineMode(1U, PAL_MODE_ALTERNATE_UART);


Pin Setup is missing from Example!
Tested with 21.11.4.
--robert