I’ve been trying to figure out how to make use of the arduino command line interface on my MacBook pro, but to be frank, I don’t entirely know what I’m doing. I’ve almost figured out the command to use to upload a sketch onto a Blink, but I’m a little stuck with this error:
arduino-cli upload -b Move38-Blinks-Library:avr:blink -programmer Error during Upload: compiled sketch /Users/JonathanWest/Projects/Causeway/Causeway.Move38-Blinks-Library.avr.blink.hex not found
This seems to me that it’s trying to point to a hex file that I assume lives somewhere other than the project directory, but I’m unsure how to change that.
I was also under the assumption that I just hadn’t properly added the Blinks core package, so I attempted that with this command from the “getting started” guide:
arduino-cli core update-index --additional-urls https://raw.githubusercontent.com/Move38/Blinks-SDK/master/package_move38.com-blinks_index.json
But I was met with this error:
Updating index: package_index.json downloaded Updating index: package_move38.com-blinks_index.json downloaded Error updating index: invalid package index in https://raw.githubusercontent.com/Move38/Blinks-SDK/master/package_move38.com-blinks_index.json: invalid character ']' looking for beginning of value
Has anyone done this before who could show me what I’m doing wrong or walk me through this process? It isn’t a huge deal for me to get this working, but as I’m mostly using Vim for code editing and I’m only using the Arduino software for it’s “upload” button, I thought this might be nicer to set up.
Thanks for the help!