-->
Page 3 of 3

Re: "Fatal exception (28)" only with ESP-12

PostPosted: Sun Jul 12, 2015 3:12 am
by mickey
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?

Re: "Fatal exception (28)" only with ESP-12

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

Re: "Fatal exception (28)" only with ESP-12

PostPosted: Thu Jul 16, 2015 10:58 am
by lethe
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.

Re: "Fatal exception (28)" only with ESP-12

PostPosted: Fri Jul 17, 2015 10:07 am
by metalphreak
Bummer. I haven't had a chance to look too far into it, but that's what I was hoping to do :(