ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By Sprite_tm
#44498 Yes, with only 512K of flash, that'd mean the webserver plus webpages have to fit in less than 256K. I'm not sure if it's possible to do that with the current SDK/code...

The OTA flash flashes both the code as well as the webpages in one go.
User avatar
By tomte76
#45307 I try to use the esphttpd (clone from yesterday for github) without OTA but with 512KB flash (ESP-201). So I changed the Makefile to contain

ESP_SPI_FLASH_SIZE_K=512
OUTPUT_TYPE=combined

the firmware compiles fine. Did a "make clean" as mentioned in the Makefile. Only this warning is notable.

/home/dt/esp-open-sdk-1.5.2/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld:ldscript_memspecific.ld:1: warning: redeclaration of memory region `irom0_0_seg'

I can also flash the firmware but it does not boot. I get stuck right after the bootloader-part is completed.

The funny thing is, if I choose OTA as an output type and set the FLASH_SIZE to 1024 (the default in the checkout) I can compile and flash and it seems to run ok.

What did I do wrong to use it on 512k without OTA?
User avatar
By Sprite_tm
#45404 The error is expected, and you can use it with 512 with OTA because you only use one of the two OTA spots. If you would try to use an OTA upgrade on the firmware, it'd try to write that to the to 512K which you do not have, and fail that way.

No idea why the combined file fails. have you tried running a 'make clean' before you run 'make'? Maybe 'make blankflash' can clear up the error?
User avatar
By tomte76
#45417 I tried "make blankflash". Unfortunately it didn't solve the problem. I changed to "OUTPUT_TYPE=separate" in the makefile, did a

make clean
make
make flash
make htmlflash

This works as expected. The module boots up, I can connect and change the SSID. What still does not work is downloading the flash. The system reboots with the following output:

Conn req from 192.168.179.21:53919, using pool slot 0
URL = /flash.bin
Is url index 0
Is url index 2
Start flash download.
Fatal exception 3(LoadStoreErrorCause):
epc1=0x4000df2f, epc2=0x00000000, epc3=0x00000000, excvaddr=0x40200000, depc=0x00000000

So something seem to be still wrong. I am using esp-open-sdk and espressif SDK 1.5.2.