-->
Page 17 of 17

Re: Introducing esp-ginx, robust webserver on esp8266

PostPosted: Fri Jan 22, 2016 11:32 pm
by fats699
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

Re: Introducing esp-ginx, robust webserver on esp8266

PostPosted: Sat Feb 13, 2016 4:12 pm
by dth
Congratulations , it's a great job !!!

I want to ask if there is a method to stop the service, as an Apache server (start/stop/restart)
The idea is change the port without rebooting.
Is this possible ?

thanks

Re: Introducing esp-ginx, robust webserver on esp8266

PostPosted: Sat Sep 24, 2016 5:12 pm
by Squonk
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?

Re: Introducing esp-ginx, robust webserver on esp8266

PostPosted: Sun Sep 25, 2016 12:40 pm
by Squonk
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!