* remove luaL_buffer from file_g_read()
- avoid memory leak when function gets terminated by lua_error
- skip scanning for end_char when reading until EOF
* attempt to free memory in any case
The esp_init_data_default.bin is now extracted from the SDK (and its
patch file, if present), and the contents are automatically embedded
into user_main.o.
To work around the pesky "rf_cal[0] !=0x05" hang when booting on a chip
which doesn't have esp_init_data written to it.
It is no longer possible to do the writing of the esp_init_data_default
from within nodemcu_init(), as the SDK now hangs long before it gets
there. As such, I've had to reimplement this in our user_start_trampoline
and get it all done before the SDK has a chance to look for the init data.
It's unfortunate that we have to spend IRAM on this, but I see no better
alternative at this point.
Input during startup (especially while doing initial filesystem format)
ran the risk of filling up the task queue, preventing the start_lua task
from being queued, and hence NodeMCU would not start up that time.
* Always build spiffsimg (and make it build)
* Make sure that we have the offset before allowing the user to put it
into the output filename
* Fix the documentation and align the makefile with the docs
* Clean up the docs a bit more
* Revert to include building the 8mb size (for ESP8285)
* Added a spiffsimg target that does what you would expect
* Added support for HOSTCC (defaults to gcc)
* Initial version of gdbstub support
* Add DEBUG argument to Makefile to add more debug data and turn off -Os
* Add the output redirection handling
* Added documentation
* Cleaned up the english a bit
* Make gdboutput actually trap all the output
* Review comments
* Add FatFs
* enable BUILD_FATFS for all-module build
* push vfs into rest of firmware
* align maximum filename length
* increase timeout for acmd41 during card initialization
* switch from DOS to Unix path semantics chdrive() is substituted by chdir()
* update to fatfs R.012a incl. patches 1-6
* add callback for rtc provisioning in file
* update docs
The original code did not deal with UDP binding failures, this new code
does one random port attempt and then sets port to 0 to get 'OS
default' behaviour, and ASSERTs that that has to work.
Patch also moves the local UDP port range definition to udp.h from
udp.c.