You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am a bit confused. I am using the Arduino-Pico framework and started playing with the Pico 2 and Pico 2 W. I use VScode and in the PlatformIO Home
under Platforms it says the board id is rpipico2,
but if I use what it tells me instead of pico for the board in platformio.ini, I get
Resolving raspberry_pi_pico2_serial dependencies...
UnknownBoard: Unknown board ID 'rpipico2'
I suspect this is because I don't fully understand the difference between the board and the platform, and don't trust the AI enough to believe it. I am adding multiple configurations to my platformio.ini for several different boards and then building the code to make sure it will work for each of them. I discovered that the Pico and Pico 2 had the same env in my platformio.ini, so I am suspicious that my code may work for the Pico, but not the Pico 2. Is this the correct env for the Pico 2?
Here is my platformio.ini for the Pico 2.
; Raspberry Pi Pico with Serial (using Arduino-Pico by Earle Philhower)
[env:raspberry_pi_pico2_serial]
platform = https://github.com/earlephilhower/platform-raspberrypi.git
board = pico ; This is strange, but I can't find why not rpipico2!
framework = arduino
board_build.core = earlephilhower
lib_deps =
https://github.com/frohro/6302view.git#master
build_flags =
-US302_WEBSOCKETS
-DS302_SERIAL
-D CORE_DEBUG_LEVEL=5
; Optional: specify USB settings for Arduino-Pico
;board_build.filesystem_size = 0.5m
;upload_protocol = picotool
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am a bit confused. I am using the Arduino-Pico framework and started playing with the Pico 2 and Pico 2 W. I use VScode and in the PlatformIO Home

under Platforms it says the board id is rpipico2,
but if I use what it tells me instead of pico for the board in platformio.ini, I get
I suspect this is because I don't fully understand the difference between the board and the platform, and don't trust the AI enough to believe it. I am adding multiple configurations to my platformio.ini for several different boards and then building the code to make sure it will work for each of them. I discovered that the Pico and Pico 2 had the same env in my platformio.ini, so I am suspicious that my code may work for the Pico, but not the Pico 2. Is this the correct env for the Pico 2?
Here is my platformio.ini for the Pico 2.
Thanks for the help!!
Rob
Beta Was this translation helpful? Give feedback.
All reactions