Skip to content

Instantly share code, notes, and snippets.

@deadprogram
Last active August 13, 2019 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deadprogram/2371a1bd842c8260132c438850561f1f to your computer and use it in GitHub Desktop.
Save deadprogram/2371a1bd842c8260132c438850561f1f to your computer and use it in GitHub Desktop.
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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment