ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By mickey
#23046
jwoodman wrote:Alright I did manage to get the ESP-HTTPD example working with the ESP-12 modules. Instead of using "make flash" and "make htmlflash" I used nodemcu-flasher (with the binaries set properly in the Config tab) and changed the flash size to 4MByte under the Advanced tab.

Can you detailed how you configur nodemcu flasher?
User avatar
By metalphreak
#23415
piperpilot wrote:Have we figured out what is required to flash to an ESP-12? I just got a couple and would like to use this for my project since it has 8X more ROM than the ESP-01. Any help is appreciated. I've been searching google for over an hour looking for info on how to configure the flash and can't seem to find anything.


http://richard.burtons.org/2015/05/24/m ... for-rboot/

Read all the posts on Richard's blog. He goes into a lot of detail on the flash mapping.

If you have 4MB flash (16mbit), you can use the normal 1+1MB dual image boot espressif provides in the SDK, and then use the last 2MB for the HTML data from esphttpd. Just set the correct offset in the makefile.

#Position and maximum length of espfs in flash memory. This can be undefined. In this case
#the webpages will be linked in into the executable file. If this is defined, please do a
#'make htmlflash' to flash the espfs into the ESPs memory.
ESPFS_POS = 0x80000 //2048kb = 2048 * 1024 byes. divide by 4 (32bits per address).
ESPFS_SIZE = 0x80000 //2048kb of space for HTML

You'd need to modify the makefile so it's a combination of the espressif "2048kb" linker script with the above definition for the esphttpd code to use the spare space beyond 2MB.
User avatar
By lethe
#23435 That won't work without further modifications.
Last I checked, esphttpd used the memory mapped area to access its filesystem. Since the ESP can only map 1MB of flash to memory and the user code must be within the mmap area, your changes will put the filesystem in an inaccessible location.
You have patch esphttpd to use spi read commands to make use of the extra space.