spritetm / esphttpd Goto Github PK
View Code? Open in Web Editor NEWNote: THIS CODE IS UNMAINTAINED. Consider switching to https://github.com/chmorgan/esphttpd instead.
Note: THIS CODE IS UNMAINTAINED. Consider switching to https://github.com/chmorgan/esphttpd instead.
I'm trying to compile the project using SDK 2.1.0
It compiles but after flashing the firmware with "make flash", the NodeMCU board remains with the blue LED flashing fast.
make htmlflash gives: No rule to make target 'htmlflash'
What am I doing wrong here?
Hallo, maybe I'm wrong. But I can't find the "ldscript_memspecific.ld" file. Is the file from a specific sdk?
hi there,
the new SDK for non-OS requires this function to be added in user_main:
`
/******************************************************************************
FunctionName : user_rf_cal_sector_set
Description : SDK just reversed 4 sectors, used for rf init data and paramters.
We add this function to force users to set rf cal sector, since
we don't know which sector is free in user's application.
sector map for last several sectors : ABBBCDDD
A : rf cal
B : at parameters
C : rf init data
D : sdk parameters
Parameters : none
Returns : rf cal sector
*******************************************************************************/
uint32 ICACHE_FLASH_ATTR
user_rf_cal_sector_set(void)
{
enum flash_size_map size_map = system_get_flash_size_map();
uint32 rf_cal_sec = 0;
switch (size_map) {
case FLASH_SIZE_4M_MAP_256_256:
rf_cal_sec = 128 - 8;
break;
case FLASH_SIZE_8M_MAP_512_512:
rf_cal_sec = 256 - 5;
break;
case FLASH_SIZE_16M_MAP_512_512:
case FLASH_SIZE_16M_MAP_1024_1024:
rf_cal_sec = 512 - 5;
break;
case FLASH_SIZE_32M_MAP_512_512:
case FLASH_SIZE_32M_MAP_1024_1024:
rf_cal_sec = 1024 - 5;
break;
default:
rf_cal_sec = 0;
break;
}
return rf_cal_sec;
}
`
I don't know if it needs mods in your specific code, I just made it to compilation and haven't tested any further.
Regards.
After loading esphttpd firmware, everything works really well, except two (most important things):
any help please?
I found this bug, hope this help.
cgiflash.c line 180,
change state->address=def->fw1Pos;
to
if (system_upgrade_userbin_check()==1) {
state->address=def->fw1Pos;
} else {
state->address=def->fw2Pos;
}
Don't forget include "upgrade.h"
While using ESP_SPI_FLASH_SIZE_K=1024 all is fine.
But changing to 2048 breaks booting user2.bin:
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_freq 40m --flash_mode qio --flash_size 16m 0x00000 "/home/al/Dropbox/linux/esp_nonos_2_1_0/sdk/bin/boot_v1.7.bin" 0x81000 build/httpd.user2.bin 0x1FC000 ../bin/esp_init_data_default.bin 0x1FE000 ../bin/blank.bin
make httpflash gives error
make[1]: Entering directory '/opt/esp-open-sdk/esphttpd/libesphttpd'
AR libesphttpd.a
index.tpl (71%, heatshrink)
wifi/wifi.tpl (55%, heatshrink)
wifi/style.css (73%, heatshrink)
wifi/140medley.min.js (74%, heatshrink)
wifi/icons.png (100%, none)
wifi/connecting.html (61%, heatshrink)
flash/index.html (54%, heatshrink)
flash/style.css (59%, heatshrink)
flash/140medley.min.js (74%, heatshrink)
test/index.html (72%, heatshrink)
test/test.js (38%, heatshrink)
led.tpl (84%, heatshrink)
style.css (78%, heatshrink)
cats/cross-eyed-cat.jpg (100%, none)
cats/kitten-loves-toy.jpg (100%, none)
cats/junge-katze-iv.jpg (100%, none)
websocket/index.html (52%, heatshrink)
make[1]: Leaving directory '/opt/esp-open-sdk/esphttpd/libesphttpd'
AR build/httpd_app.a
Header: 40 bytes, user1: 377908 bytes, user2: 377908 bytes.
curl: (3) malformed
Makefile.ota:93: recipe for target 'httpflash' failed
make: *** [httpflash] Error 3
Hi,
First of all I would like to thank you for esphttpd project. It's a great project and I learned a lot from it.
I have created my own application based on esphttpd and I compile it against NONOS SDK v2.2.0
I am also using the SDK's latest default.bin and bootloader.bin.
My application has just slightly more web-pages than original esphttpd
In makefile, I choose separate mode, and application works perfectly.
However, when I build project as a OTA, some problems arise:
(I am putting user1.bin to 0x01000 and user2bin to 0x81000.)
(I am using 32mbit ESP board)
(I am compiling with ESP_FLASH_SIZE=1024)
I've then decided to take a look into makefile and found that when i change this line:
[code]ldscript_memspecific.ld:
to something like this:
[code]ldscript_memspecific.ld:
$(Q) echo "MEMORY { irom0_0_seg : org = 0x40240000, len = 0x6B000 }"> ldscript_memspecific.ld[/code]
Suddenly if user2.bin is flashed. The code works and pages are displayed correctly.
However if I flash only user1.bin, the webpages are again not displayed, but code is working.
What is happening here? Can you please help. I've lost 3 days and have no more clues what can i try. I only have elementary knowledge on makefiles, and can't do much without further help.
Thank you very much for any help.
I'm a noobie at esp8266 and i don't know how to flash this onto my nodemcu esp8622?
An error came up when I tried 'make flash'. The error read:
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: '/Volumes/case-sensitive/esp-open-sdk/ESP8266_NONOS_SDK_V2.0.0_16_08_10/bin/boot_v1.5.bin' make: *** [flash] Error 2
The file wasn't included in my SDK build anymore, only boot_v1.2.bin and boot_v1.6.bin.
To get this working I simply changed the line looking for this file in Makefile.ota to look for boot_v1.6.bin.
Hello,
I cloned the project and I'm trying to use it on a NodeMCU board, 4MB (nonos 2.1.0 SDK version).
make flash works ok, instead, make htmlflash gives me: "No rule to make target 'htmlflash'".
In makefile I have OUTPUT_TYPE=ota
I thought that make flash was enough but, without htmlflash it doesn't load the static html files I added.
How could I solve this problem? Doesn't it work even with the OTA parameter (it works with OUTPUT_TYPE=separate)?
Thanks!
Hello
I'm using the template program named "esphttpd" on eclipse / windows with ESP07 with 8MBit (1MByte) SPI flash.
When I'm putting the OTA flag on makefile "OUTPUT_TYPE=ota"
The compiler send me an error :
"mingw32-make.exe: *** No rule to make target 'libesphttpd/mkupgimg/', needed by 'libesphttpd/mkupgimg/mkupgimg'. "
If I comment the line on makefile.ota the line
libesphttpd/mkupgimg/mkupgimg: libesphttpd/mkupgimg/
make -C libesphttpd/mkupgimg/
the compilation seem OK and two bin was genrated httpd.user1.bin and httpd.user2.bin.
I flash the boot_c1.6.bin at 0x0000
the httpd.user1.bin at 0x1000
the esp_init_data_default.bin at 0xFC000
the blank.bin at 0xFE000
reboot the device, all thing seem well I can connect to WEB server at 192.168.4.1 and go to firmware update.
I choose the httpd_user2.bin stat flash and the ESP module reboot before ending the download.
I'm reading the flash before and after the user2.bin fw download / convert it in hex format and see that the user1 area is corrupted by some FF.
It seem that my user2.bi is not located corectly in memory but I don't know why
If is due to missing line in makefile.ota that I puted in commentary ? if yes how to compile the "mkupgimg" file / what the mean of this file?
Have you got some idea how to investiguate the issue?
Thank
Thierry
Hello I have your project esphttpd and everything is fine. I made some changes for my needs. But about a week ago I have a problem. When I press "Clean" in project menu and than build and flash project. Module start to reboot at startup.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.