#RP2040 and GPIO23/24

1 messages · Page 1 of 1 (latest)

worthy girder
#

I cannot configure MobiFlight to use GP23/24 on RP2040. Is there a setting to unlock 23/24 for custom boards?

#

Additionally, I cannot use ADC3 on RP2040, even though it is available on the chip

mellow bramble
#

The supported board is the Raspberry Pi Pico, which does not expose those pins.

#

I think you would need to modify the board json file to allow using those pins.

long ermine
worthy girder
#

The generic seems to break the Pico, I have to hit BOOTSEL then turn it on to reset it

#

With "Mobiflight RaspiPico generic"

#

After flashing generic it does this

long ermine
#

@worthy girder Do you have a Pico or Pico 2?

worthy girder
#

"Raspberry Pi Pico H, (copyright) 2021"

long ermine
#

OK, let me test it when I am back at home (~2h).

worthy girder
#

aight, thanks.

long ermine
#

Hmhm, just tested it with my Pico and it works.
When you start your board ib bootloader mode, a USB drive shows up. Which drive letter does it have? Do the files on this drive show up like the attachment?

#

I just found a smaller bug. Only 3 analog inputs are defined within the board.json file, but it must be 4.
Also the max buttons and outputs can be increased to 30.
I will make a new release during the day with the correct number of buttons/outputs.

#

Oh, and does flashing the stock Pico FW work?

drowsy pulsar
#

flashing my custom rp2040 works fine for me

#

but @worthy girder if you boot the pico to bootsel mode, it should indeed look like this:

worthy girder
drowsy pulsar
#

you can also copy the pico firmware there manually in file wxplorer

worthy girder
long ermine
#

Hmhm, no idea what the reason cpuld be. Never had this before. I would say it could be the USB cable, but flashing the "normal" Pico FW works...
I would try what @drowsy pulsar said, copy xy/MobiFlight/Community/Elral/firmware/mobiflight_raspberrypico_generic_3_0_0.uf2 to your drive E which appears when the Pico is in bootloader mode. Would be interesting if this works.

drowsy pulsar
#

I recall once having a board that didn't work with MF flashing but when I manually copied the . uf2 on it, it then worked and also flashed afterwards with MF

#

not sure why but people have had some issues at times with custom RP2040 boards that have some issues with timing during boot

#

when I searched google I found some reddit and forum threads about it

long ermine
drowsy pulsar
#

yeah

#

but I mean this was with a regular pico firmware even, it didnt flash normally, had to short boot pins and then it came up and after initial firmware also the "connect 1200baud to invoke bootloader" worked

#

it seemed dead initially

#

not sure if this is a similar case though