Skip to content

how to upload .hex file using debug window "send" #254

Open
@hpssjellis

Description

@hpssjellis

I noticed at the bottom left of the tool bar arduino-create-agent--> open debug console in chrome, it has a textbox and a send button. If you enter

list

It gives a list of connected devices.

Can someone give working examples for uploading .hex files and urls for the arduino uno and arduino nano 33 ble

This seems to be the code API, but I am not really sure of board names, capitalization allowed quotes etc.

"program [portName] [board:name] [$path/to/filename/without/extension]", 
"programfromurl [portName] [board:name] [urlToHexFile]"]} 

So for the uno to load blink.hex from a windows file path I would assume

program COM5 uno C:\Users\[user.name]\Documents\blink.hex

Are you allowed double or single quotes for file names with spaces?

And from a url for the nano 33 ble I would guess

programfromurl COM5 nano33ble https://github.com/hpssjellis/particle-mesh-with-openthread-nrf52840-usb-bins/blob/master/sept2019/ot-cli-ftd.hex

Historically, with Nordic devices, I have not had much luck downloading .hex files from github. They tend to need to be saved in zipped folders on github then extracted on a computer and then uploaded to the device. Has anyone tried installing a .hex file from github? Would a zipped file install?

This seems to have more information, which looks like you need to link to a JSON file

https://github.com/arduino/arduino-create-agent#upload

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions