arduino / nicla-sense-me-fw

Arduino Nicla Sense ME resources (libraries, bootloader, host pc utilities)
GNU Affero General Public License v3.0
46 stars 27 forks source link

Over-the-air update support for Nicla Sense ME? #97

Closed hkayann closed 1 year ago

hkayann commented 1 year ago

Hi,

Is doing OTA update possible for Nicla Sense ME? If yes, I appreciate any guidance.

I could only find this OTA guide for Arduino Portenta H7.

facchinm commented 1 year ago

Hi @hkayann , the bhy_controller tool implements DFU for Nicla Sense ME using WebBluetooth. Hope it helps you getting started!

hkayann commented 1 year ago

@facchinm I have tried to use that tool but no success yet. I cd into src, and then ./bhy. It returns zsh: no such file or directory: ./bhy. Any idea what is wrong?

facchinm commented 1 year ago

Yup, you also need to compile the tool with go build (or use a precompiled version of the tool from here https://github.com/arduino/nicla-sense-me-fw/releases/tag/1.0.5)

hkayann commented 1 year ago

Many thanks! Just one final thing @facchinm.

Can I change the uploaded sketch via DFU? For example, imagine it blinks blue LED, change that to red etc.

facchinm commented 1 year ago

You can access the DFU page from here https://arduino.github.io/nicla-sense-me-fw/tools/bhy-controller/src/static/dfu.html and select the new binary to be flashed :slightly_smiling_face:

hkayann commented 1 year ago

Many thanks @facchinm, I really appreciate the help!