nigelb / platform-apollo3blue

AmbiqMicro Apollo 3 Blue: development platform for PlatformIO
Apache License 2.0
29 stars 12 forks source link

problem with the upload_port when creating new project #16

Closed jerabaul29 closed 3 years ago

jerabaul29 commented 3 years ago

I always get (some variations of) the following error message when creating a new project with an Artemis board:

PIO Core Call Error: "The current working directory /home/jrlab/Documents/PlatformIO/Projects/test_err_msg will be used for the 
project.\n\nThe next files/directories have been created in /home/jrlab/Documents/PlatformIO/Projects/test_err_msg\ninclude - Put project header files here\nlib - Put here project specific (private) libraries\nsrc - Put project source files here\nplatformio.ini - Project Configuration File\n\n\nError: Processing SparkFun_RedBoard_Artemis (platform: apollo3blue; board: SparkFun_RedBoard_Artemis; framework: arduino)\n--------------------------------------------------------------------------------\nTool Manager: Could not parse manifest -> Expecting property name enclosed in double quotes: line 7 column 1 (char 204)\nTool Manager: Could not parse manifest -> Expecting property name enclosed in double quotes: line 7 column 1 (char 204)\nVerbose mode can be enabled via `-v, --verbose` option\nTool Manager: Could not parse manifest -> Expecting property name enclosed in double quotes: line 7 column 1 (char 204)\nError: Please specify `upload_port` for environment or use global `--upload-port` option.\nFor some development platforms it can be a USB flash drive (i.e. /media/<user>/<device name>)\n========================== [FAILED] Took 0.23 seconds =========================="

Basically, complaining that I need to specify the upload_port in the platformio.ini config file. Easy enough to fix by adding a dummy upload port to the config file, but annoying, and may scare people who are "even n00ber than me" :) .

nigelb commented 3 years ago

Hi @jerabaul29 this should be fixed now.

wzqvip commented 1 year ago

config: [env:Ambiq_Apollo3_Blue_EVB] platform = apollo3blue board = Ambiq_Apollo3_Blue_EVB framework = ambiqsdk-sfe platform_packages = framework-ambiqsuitesdkapollo3-sfe@2.5.1

I want to use this PIO to code with Apollo 3 EVB (official)

`Processing Ambiq_Apollo3_Blue_EVB (platform: apollo3blue; board: Ambiq_Apollo3_Blue_EVB; framework: ambiqsdk-sfe)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/apollo3blue/Ambiq_Apollo3_Blue_EVB.html PLATFORM: Apollo 3 Blue (0.0.2+sha.cdbb76e) > Ambiq Apollo3 Blue EVB HARDWARE: AMA3B1KK 48MHz, 384KB RAM, 960KB Flash DEBUG: Current (jlink) External (jlink) PACKAGES:

nigelb commented 1 year ago

Hi @wzqvip,

What command did you run to get this output?

From what I can see it looks like you may have an issue with the toolchain-gccarmnoneeabi package's manifest.

Have you tried deleting the package and re-running the command? It will be in your .platformio/packages directory in your $HOME directory. It will will be called either toolchain-gccarmnoneeabi or toolchain-gccarmnoneeabi@<VERSION_NUMBER>

Nigel.