ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By Sprite_tm
#10731 aidanruff: Is this in a current version of the sources? Run a 'git update' if you're unsure. I'm sure I fixed this a while ago.

ulko: esphttpd ships with an empty user_config.h and doesn't really support putting defines in there: if anything esphttpd itself doesn't use it. Are you sure you use my repository and not someone elses?
User avatar
By ulko
#10901
Sprite_tm wrote:ulko: esphttpd ships with an empty user_config.h and doesn't really support putting defines in there: if anything esphttpd itself doesn't use it. Are you sure you use my repository and not someone elses?

At the moment I'm totally confused. I made git clone http://git.spritesserver.nl/esphttpd.git/
In eclipse under windows this is not to compile - several files missing!? I then tried with copy and paste all your relevant modules in eclipse - compile and flashed it - BUT still 'do so' does not scan for AP's.
Can you please tell me where to get the right source?
Is there any init data in flash that I might have killed?
User avatar
By prozac
#10949 @Sprite_tm: This is awesome man. I have made a version that moves the debug to Uart1 (sort of) and enables the AT command set from 0.9.4, but I had a few questions regarding the memory layout. As I look at the makefile, etc, it looks like the app gets flashed to 0x00000 (.text, .data, .rodata) the espfs is at 0x12000 and the second part of the app (is irom0.text just the api?) is at 0x40000.

In my case, the 0x00000.bin file is ~40k, the 0x40000.bin is ~160k and the espfs is small ~10k.

I was looking at the memory map at https://github.com/esp8266/esp8266-wiki/wiki/Memory-Map and note that:
Code: Select all00000h   4k     boot.bin                Bootloader
01000h   64k    app.v6.flash1.bin       User application, slot 1
11000h   180k   app.v6.irom0text1.bin   SDK libraries, slot 1
3E000h   8k     master_device_key.bin   OTA device key
40000h   4k     Unused
41000h   64k    app.v6.flash1.bin       User application, slot 2
51000h   180k   app.v6.irom0text1.bin   SDK libraries, slot 2
7E000h   8k     blank.bin               Filled with FFh. May be WiFi configuration.


Why is the FW image not kept as one image flashed at 0x00000 and move the espfs to 0x52000? That would allow for the same storage sizes but would make it much easier to scale the webroot/program space based on the individuals needs (flash web root at 51000 or 48000. Does the cpu expect something special at those offsets?

I would like to try to add in an OTA update function, but I need to get the app to fit one app block contiguously. The other half would contain the webroot and would get flashed after the first reboot (post update). This would also allow for updating of just the web portion OTA (great for development). Any reason that you are aware of that this is impossible (or highly unlikely)?
User avatar
By bjpirt
#11188 @prozac I'm wanting to do the same thing - as far as I can tell, the only things that are fixed in that memory map are locations 0x01000 and 0x41000 but that's only because they are where the boot.bin from Espressif expects the apps to go. It makes no sense to me to separate out the user application and the SDK libraries as in the existing memory map and so I had been hoping to put these into a contiguous chunk of data and then put the espfs at something like 0x33000, after the user1 firmware. Does anyone else know how to do this?

Of course, this is all because the source isn't available for the Espressif boot.bin file, otherwise you could rearrange the memory map to your heart's content.

Cheers,
Ben