So I managed to also update the firmware. Thanks for the new ESP firmware @victor
I wasn’t able to use the cellphone method as the file selection screen doesn’t show up - as noted may happen.
I used the ESPtool method. This wasn’t easy either as I was getting the serial
error when calling the flash code:
# python and python3 have the same path
> sudo python esptool.py --port /dev/ttyACM0 --baud 115200 write_flash 0x000000 ~/Downloads/ESP_firmware_098.bin
# serial not found error!
I thought/knew serial was installed - but it was installed to /bin/python but not ~/.platformio/penv/bin/python. I’m not quite sure why.
Regardless, due to how I setup my path for platformio export PATH="/home/cyrille/.platformio/penv/bin:$PATH"
it was finding that python version first. So I just swapped my export command to the following:
> export PATH="$PATH:/home/cyrille/.platformio/penv/bin"
> which python
/usr/bin/python
I wasn’t able to use the ‘echo’ version of getting the SCK2.1 listening so I just entered the shell and did esp -flash 115200
.
It didn’t work the first time as the SCK2.1 wasn’t ready yet, but I tried again a second later and it was fine.
I received the following output:
Serial port /dev/ttyACM0
Connecting...
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 3c:61:05:df:ea:a0
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 451168 bytes to 336030...
Wrote 451168 bytes (336030 compressed) at 0x00000000 in 29.5 seconds (effective 122.3 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Having now updated both the SAM and ESP firmware - I’m now receiving data on my own MQTT server. Thanks!