Slight readme update; reset Makefile things to default for ESP-01 modules
This commit is contained in:
@@ -2,14 +2,15 @@
|
|||||||
# 'separate' - Separate espfs and binaries, no OTA upgrade
|
# 'separate' - Separate espfs and binaries, no OTA upgrade
|
||||||
# 'combined' - Combined firmware blob, no OTA upgrade
|
# 'combined' - Combined firmware blob, no OTA upgrade
|
||||||
# 'ota' - Combined firmware blob with OTA upgrades.
|
# 'ota' - Combined firmware blob with OTA upgrades.
|
||||||
|
#Please do a 'make clean' after changing this.
|
||||||
|
OUTPUT_TYPE=separate
|
||||||
#OUTPUT_TYPE=combined
|
#OUTPUT_TYPE=combined
|
||||||
#OUTPUT_TYPE=separate
|
#OUTPUT_TYPE=ota
|
||||||
OUTPUT_TYPE=ota
|
|
||||||
|
|
||||||
#SPI flash size, in K
|
#SPI flash size, in K
|
||||||
ESP_SPI_FLASH_SIZE_K=1024
|
ESP_SPI_FLASH_SIZE_K=512
|
||||||
#0: QIO, 1: QOUT, 2: DIO, 3: DOUT
|
#0: QIO, 1: QOUT, 2: DIO, 3: DOUT
|
||||||
ESP_FLASH_MODE=2
|
ESP_FLASH_MODE=0
|
||||||
#0: 40MHz, 1: 26MHz, 2: 20MHz, 0xf: 80MHz
|
#0: 40MHz, 1: 26MHz, 2: 20MHz, 0xf: 80MHz
|
||||||
ESP_FLASH_FREQ_DIV=0
|
ESP_FLASH_FREQ_DIV=0
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
esp-httpd README
|
esp-httpd README
|
||||||
|
|
||||||
This is a small but powerful webserver for ESP8266(EX) chips. Included is an example of how
|
This is the demonstration project for the small but powerful libesphttpd webserver
|
||||||
to make a module that can have the AP it connects to configured over a webbrowser.
|
for ESP8266(EX) chips. It is an example of how to make a module that can have
|
||||||
|
the AP it connects to configured over a webbrowser. It also illustrates multiple
|
||||||
|
flash layouts and some OTA update functionality.
|
||||||
|
|
||||||
ABOUT THE WEBSERVER
|
ABOUT THE WEBSERVER
|
||||||
|
|
||||||
@@ -48,7 +50,7 @@ To manage the paths to all this, you can source a small shell fragment into your
|
|||||||
example, I source a file with these contents:
|
example, I source a file with these contents:
|
||||||
export PATH=${PWD}/esp-open-sdk/xtensa-lx106-elf/bin:$PATH
|
export PATH=${PWD}/esp-open-sdk/xtensa-lx106-elf/bin:$PATH
|
||||||
export SDK_BASE=${PWD}/esp-open-sdk/sdk
|
export SDK_BASE=${PWD}/esp-open-sdk/sdk
|
||||||
export ESPTOOL=${PWD}/esptool/esptool
|
export ESPTOOL=${PWD}/esptool/esptool.py
|
||||||
export ESPPORT=/dev/ttyUSB0
|
export ESPPORT=/dev/ttyUSB0
|
||||||
export ESPBAUD=460800
|
export ESPBAUD=460800
|
||||||
|
|
||||||
@@ -67,8 +69,7 @@ Now, build the code:
|
|||||||
make
|
make
|
||||||
|
|
||||||
Flash the code happens in 2 steps. First the code itself gets flashed. Reset the module into bootloader
|
Flash the code happens in 2 steps. First the code itself gets flashed. Reset the module into bootloader
|
||||||
mode and enter 'make flash'. You may want to reset and re-enter the bootloader halfway (at 'sleep 3') for
|
mode and enter 'make flash'.
|
||||||
the 2nd part of this flash to work.
|
|
||||||
|
|
||||||
The 2nd step is to pack the static files the webserver will serve and flash that. Reset the module into
|
The 2nd step is to pack the static files the webserver will serve and flash that. Reset the module into
|
||||||
bootloader mode again and enter 'make htmlflash'.
|
bootloader mode again and enter 'make htmlflash'.
|
||||||
|
|||||||
Reference in New Issue
Block a user