-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notes on getting started #227
Comments
I mentioned the migration from board manager version 2 to 3 during our discussion. Here is the migration guide: Migration from 2.x to 3.0 - - — Arduino ESP32 latest documentation |
The sketch successfully uploads using the VSCode extension:
|
I discovered the correct option name! We were trying I ran the following command to find this out: This spits out a bunch of information:
The following flash command works now: |
The summary is that I was unable to upload a WARDuino sketch to my Adafruit ESP32 Feather V2 using the arduino-cli. I still need to try uploading the the sketch using the VSCode Arduino extension or Arduino Studio.
Here are my notes (some are relevant to the Getting Started page but many are only relevant to a developer trying to get started now before WARDuino is ready):
npm init
npm install --save-dev assemblyscript
npm install 'https://gitpkg.now.sh/TOPLLab/WARDuino-libs/glue/assemblyscript?main'
(will be replaced bynpm install as-warduino
)npx asinit .
assembly/index.ts
(I copied over the Blink example and changed the LED to the internal LED for my board)npm run asbuild
arduino-cli config init
arduino-cli config dump --verbose
arduino-cli core update-index
arduino-cli core install esp32:esp32
arduino-cli lib install PubSubClient
arduino-cli lib install "Adafruit NeoPixel"
cd ~/Documents/Arduino/libraries
(this is the default path on macos)git clone git@github.com:TOPLLab/WARDuino.git
cd WARDuino
git submodule update --init
(needed to fetch the json library submodule)cd ~/Documents/Arduino/libraries/WARDuino/platforms/Arduino
make compile BINARY=path/to/assemblyscript/directory/build/release.wasm FQBN=esp32:esp32:adafruit_feather_esp32_v2 PORT=/dev/tty.usbserial-555F0646821 PAUSED=true
(only some options are needed here)make flash BINARY=path/to/assemblyscript/directory/build/release.wasm FQBN=esp32:esp32:adafruit_feather_esp32_v2 PORT=/dev/tty.usbserial-555F0646821 PAUSED=true
(only some options are needed here)My upload fails. Here is the output:
I am pretty certain this is an issue with the upload speed and this particular board. I will try uploading it using the VS Code extension next.
The text was updated successfully, but these errors were encountered: