arduino / arduino-cli

Arduino command line tool
https://arduino.github.io/arduino-cli/latest/
GNU General Public License v3.0
4.35k stars 377 forks source link

pico2040w bluetooth problem #2241

Closed crouse12 closed 1 year ago

crouse12 commented 1 year ago

Describe the request

If you want upload pico2040w bluetooth program to pico 2040w board, ENABLE_CLASSIC should be 1. This parameter can be set if you use arduino ide. Do I know how to set it when I use arduino-cli?

image

Describe the current behavior

arduino-cli error message image

Arduino CLI version

all versions

Operating system

Windows

Operating system version

Win11

Additional context

No response

Issue checklist

umbynos commented 1 year ago

Hello @crouse12! I guess you are using https://github.com/earlephilhower/arduino-pico core. To specify "menu options" in che CLI you can use the board-options flag. You can find more on that here. Something like this should work: arduino-cli compile --fqbn rp2040:rp2040:arduino_nano_connect --board-options ipbtstack=ipv4btcble BTSerialUppercase

To know what parameters are available, you can explore the core's board.txt file.