mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-19 06:03:57 +00:00
cbcb62af01
Signed-off-by: deadprogram <ron@hybridgroup.com>
16 lines
665 B
Bash
Executable File
16 lines
665 B
Bash
Executable File
#!/bin/bash
|
|
|
|
mkdir -p ../build
|
|
|
|
# flash the passthru binary to the SAMD21 using bossac
|
|
# code from https://github.com/arduino-libraries/WiFiNINA/blob/master/examples/Tools/SerialNINAPassthrough/SerialNINAPassthrough.ino
|
|
stty -F /dev/ttyACM0 ispeed 1200 ospeed 1200
|
|
bossac -d -i -e -w -v -R --port=/dev/ttyACM0 --offset=0x2000 ./SerialNINAPassthrough.ino.nano_33_iot.bin
|
|
|
|
# download the nina-fw binary
|
|
wget -P ../build/ https://github.com/arduino/nina-fw/releases/download/1.4.5/NINA_W102-v1.4.5.bin
|
|
|
|
# flash the nina-fw binary to the ESP32 using esptool
|
|
esptool --port /dev/ttyACM0 --before default_reset --baud 115200 write_flash 0 ../build/NINA_W102-v1.4.5.bin
|
|
|