ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By fats699
#39475 hi guys i have been playing with this and am stuck with a few errors in Eclipse
when i go to build all i get 5 errors
Code: Select allDescription   Resource   Path   Location   Type
mingw32-make.exe: *** [.subdirs] Error 2   esp_gnix          C/C++ Problem
mingw32-make[1]: *** [.subdirs] Error 2   esp_gnix          C/C++ Problem

mingw32-make[2]: *** No rule to make target 'c:\espressif\xtensa-lx106-elf\xtensa-lx106-elf\include\machine\_types.h', needed by '.output/eagle/debug/obj/user_main.o'.  Stop.   esp_gnix          C/C++ Problem

recipe for target '.subdirs' failed   Makefile   /esp_gnix   line 184   C/C++ Problem

recipe for target '.subdirs' failed   esp_gnix      line 184   C/C++ Problem



if someone can point me in the right direction it would be great.
this is a great project

regards Martin
User avatar
By Squonk
#55628 I un-commented the "#define FLASH_AUTOSIZE" and "#define DEVELOP_VERSION" in "app/include/user_config.h", and after upgrading the esptool.py to the latest version (https://github.com/themadinventor/esptool), I am able to flash and run the latest esp-ginx on a NodeMCU 0.9.

It is not explicitly written, but I found that I had to add a "smart.relay.com" entry into my /etc/hosts file in order to access the server. It may be nice to put this in the README ;-)

However, when I use the exact same firmware and flash it into a NodeMCU 1.0 (ESP12E), all I get on the UART are repeated messages like:
Code: Select allFatal exception (28):
epc1=0x40001800, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00007ff0, depc=0x00000000
epc1=0x40001800, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00007ff0, depc=0x00000000
...


Can someone tell me what is going wrong?
User avatar
By Squonk
#55684 Nevermind, I found the answer myself: the NodeMCU 1.0 is using a 32 Mbit Flash in DIO mode, not QIO like the NodeMCU 0.9 and other ESP8266 boards, see http://nodemcu.readthedocs.io/en/master ... devkit-v10

I had to use:
Code: Select allexport ESPTOOL_FM=dio
export ESPTOOL_FS=32m
make clean
make
make flash

using the latest esptool.py to compile and flash esp-ginx successfully on the NodeMCU with an ESP12E.

@Israel Lot: thanks a lot for sharing esp-ginx, but please upgrade the packaged esptool.py, it is 2 year old and completely outdated for very common boards!