tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/wifinina/updater/update_ninafw_nano33iot.sh (about)

     1  #!/bin/bash
     2  
     3  # flash the passthru binary to the SAMD21 using bossac
     4  # code from https://github.com/arduino-libraries/WiFiNINA/blob/master/examples/Tools/SerialNINAPassthrough/SerialNINAPassthrough.ino
     5  stty -F /dev/ttyACM0 ispeed 1200 ospeed 1200
     6  bossac -d -i -e -w -v -R --port=/dev/ttyACM0 --offset=0x2000 ./SerialNINAPassthrough.ino.nano_33_iot.bin
     7  
     8  # download the nina-fw binary
     9  wget https://github.com/arduino/nina-fw/releases/download/1.4.8/NINA_W102-v1.4.8.bin 
    10  
    11  # flash the nina-fw binary to the ESP32 using esptool
    12  esptool --port /dev/ttyACM0 --before default_reset --baud 115200 write_flash 0 ./NINA_W102-v1.4.8.bin
    13