Add flashing notes.
This commit is contained in:
parent
3e816b0dc0
commit
5b77bcca71
28
notes.org
28
notes.org
@ -1,6 +1,32 @@
|
|||||||
|
|
||||||
#+TITLE: MicroPython Implementation Notes
|
#+TITLE: MicroPython Implementation Notes
|
||||||
|
|
||||||
|
* Backup Up firmware, flashing, etc.
|
||||||
|
|
||||||
|
On lolin32, need to hold down the reset while esptool is connecting,
|
||||||
|
and then release to get this to work.
|
||||||
|
|
||||||
|
** Backup existing firmware from 4M Flash ESP32
|
||||||
|
#+BEGIN_SRC bash
|
||||||
|
esptool.py -b 115200 --port /dev/ttyUSB0 read_flash 0x00000 0x400000 lolin32_original.bin
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
** Update Flash from backup
|
||||||
|
#+BEGIN_SRC bash
|
||||||
|
esptool.py -b 115200 --port /dev/ttyUSB0 write_flash --flash_freq 80m 0x000000 lolin32_original.bin
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
** Erase Flash
|
||||||
|
#+BEGIN_SRC bash
|
||||||
|
esptool.py -b115200 --port /dev/ttyUSB0 erase_flash
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
** Flash with MicroPython
|
||||||
|
|
||||||
|
#+BEGIN_SRC bash
|
||||||
|
esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash -z 0x1000 ~/Downloads/esp32-idf3-20200902-v1.13.bin
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
|
||||||
* Circuit Layout
|
* Circuit Layout
|
||||||
|
|
||||||
@ -50,7 +76,7 @@ from machine import Pin
|
|||||||
vext = Pin(21, Pin.OUT, Pin.PULL_HOLD)
|
vext = Pin(21, Pin.OUT, Pin.PULL_HOLD)
|
||||||
vext.value(0) # Turns ON Vext
|
vext.value(0) # Turns ON Vext
|
||||||
vext.value(1) # Turns OFF Vext
|
vext.value(1) # Turns OFF Vext
|
||||||
machine.deep_sleep()
|
machine.deepsleep()
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Wifi Connection Example, outbound requests.
|
* Wifi Connection Example, outbound requests.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user