- Thu Jul 16, 2015 7:42 am
#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.