cd {gopath}/src/github.com/hybridgroup/esp32-at
git pull
git branch arduino-nano33-iot
make clean
* success *
make
* success *
cp build/esp32/* {gopath}/src/tinygo.org/x/drivers/espat/flasher/
cd {gopath}/src/tinygo.org/x/drivers/espat/flasher/
* put chip in boot mode *
./flash.sh
* success *
To Test: Pull down https://gist.githubusercontent.com/deadprogram/9ec439ccb557511e39c4be4403c7f366/raw/9a69989d9c02c7d14667d235f58a5b8968f9621c/espconsole.go
tinygo flash -target=arduino-nano33 ./espconsole.go
picocom {device path, ex: /dev/ttyACM0}
Hit return so you have the ESPAT> prompt
Enter AT+GMR and see:
AT version:1.3.0.0-dev(f82742c - May 7 2019 09:25:11)
SDK version:v3.3-beta1
Enter AT+CWMODE? and see
+CWMODE:2
OK
Enter AT+BLEINIT=1 and see no response Enter AT+BLEINIT? and see:
OK
+BLEINIT:1
OK
It works!