Replies: 2 comments 4 replies
|
Just verified that the IDE works fine with a Pico2 using the generic_rp2350/RP3250A selection. So, looks like your P.IO config is not specifying the chip properly in some way. Check that it matches the defines used in the IDE for the generic-2350/variant A model. Even better would be to make a custom board definition/JSON. The logic boils down to a simple define in Arduino.h based on the RP2350A define arduino-pico/cores/rp2040/Arduino.h Lines 164 to 171 in c720c79 Somehow you've |
|
Thanks for your fast reply. A simple example with does work. I even have not to add My used platformio.ini uses also the same board definition, but still the wrong pins are used. Now I have to figure out why |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello all,
I have an own designed board using the RP2350A, the FW gets compiled using PlatformIO. The board definition is
generic_rp2350.Part of the the FW is reading analog values where the pin number is not hardcoded.
I realized that
analogRead(A0)is working, butanalogRead(26)not. Hovering aboveA0showed me the value40. So I have to useanalogRead(40)to read from the first analog pin 26.Using the board definition
rpipico2it's working like intended.Is this the intended behaviour? If so, a hint in the documentation woudl be great.
All reactions