Comments (5)
Success! Using esptool to erase the flash did the job. In case anyone finds themselves in the same situation as me, here's the steps I took to erase the flash and put micropython on the board:
- Plug the board in with the On/Off switched to Off
- Run
$ esptool.py --port /dev/tty.SLAB_USBtoUART erase_flash
(Your port may vary) - You'll see a
Connecting........_____
message - During this message, hold down the joystick button and turn the switch to On. Then release the joystick button. Doing this near the beginning of the "Connecting" message worked for me.
Full output:
$ esptool.py --port /dev/tty.SLAB_USBtoUART erase_flash
esptool.py v2.6
Serial port /dev/tty.SLAB_USBtoUART
Connecting........_
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:84:63:66
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 7.1s
Hard resetting via RTS pin...
Installing micropython was then a similar process:
$ esptool.py --port /dev/tty.SLAB_USBtoUART --baud 460800 write_flash --flash_size=detect 0 esp8266-20190529-v1.11.bin
esptool.py v2.6
Serial port /dev/tty.SLAB_USBtoUART
Connecting........_____....._
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:84:63:66
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0040
Compressed 617880 bytes to 402086...
Wrote 617880 bytes (402086 compressed) at 0x00000000 in 9.6 seconds (effective 517.5 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Badgy now broadcasts the Micropython AP successfully. Thanks very much for your help!
from badgy.
Awesome, glad the little joystick hack worked for you!
from badgy.
It all depends on the sketch. The on/off switch won't put it into upload mode - but most of the badgy sketched use the deepsleep, so once it's booted and done "whatever task" it will shut down. I found a little more reliable is to hold the joystick button down on boot. This (usually - again, depends on the sketch) will put it into OTA Upload mode and not set it to go to sleep. It will be sat waiting for a HTTP upload, but more importantly will be up and running and able to accept Tx Rx signals from the USB chip.
from badgy.
Try using the esptool and erasing the flash. You may also have to toggle the on/off switch at the right time if you are unable to get it into upload mode.
from badgy.
Thanks for the reply. Regarding toggling the on/off switch at the right time to force into upload mode - is there a specific time to do this? E.g. a few seconds after plugging in the USB?
from badgy.
Related Issues (20)
- Possible minor typo in readme.md HOT 1
- Unable to wake from DeepSleep HOT 4
- 'WiFiManager' was not declared in this scope HOT 4
- Cannot compile examples in Arduino IDE HOT 4
- Fatal error occurred with esptool.py after erase_flash HOT 7
- problem(s) with new Badgy HOT 22
- Badgy no longer booting HOT 7
- Not connecting via USB HOT 3
- Compiler errors HOT 9
- [micropython] update example for the latest display HOT 3
- not able to upload firmware over wifi - OTA HOT 4
- Console log not showing anything in Serial (COM port) HOT 7
- Showing image from bytes stored in SPIFFS file HOT 3
- image is broken - micropython - Rev 2C
- New pcb's
- U2 started smoking
- PCB or schematics HOT 1
- Boot failure
- Esphome support? HOT 11
- Weather example needs to be updated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from badgy.