RP2040 SIO Help

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: tfAteba, barthess, RoccoMarco, lbednarz, utzig

robert_o
Posts: 53
Joined: Fri Feb 17, 2017 11:25 pm
Has thanked: 1 time
Been thanked: 6 times

RP2040 SIO Help

Postby robert_o » Fri Oct 10, 2025 10:01 am

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.

User avatar
Giovanni
Site Admin
Posts: 14733
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1156 times
Been thanked: 965 times

Re: RP2040 SIO Help

Postby Giovanni » Fri Oct 10, 2025 3:14 pm

Hi,

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

BTW 21.6 is quite old and unsupported.

Giovanni

robert_o
Posts: 53
Joined: Fri Feb 17, 2017 11:25 pm
Has thanked: 1 time
Been thanked: 6 times

Re: RP2040 SIO Help

Postby robert_o » Mon Oct 13, 2025 7:21 am

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

robert_o
Posts: 53
Joined: Fri Feb 17, 2017 11:25 pm
Has thanked: 1 time
Been thanked: 6 times

Re: RP2040 SIO Help

Postby robert_o » Fri Oct 17, 2025 9:07 am

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


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 10 guests