- 22 Sep, 2016 5 commits
-
-
Johny Mattsson authored
Now uses the designated partition (type 0xC2, 0x00) unconditionally.
-
Johny Mattsson authored
It would appear my ESP3212 only has a 2MB flash chip despite the bootloader saying 4MB.
-
Johny Mattsson authored
-
Johny Mattsson authored
-
Johny Mattsson authored
-
- 21 Sep, 2016 4 commits
-
-
Johny Mattsson authored
-
Johny Mattsson authored
Also included the recent LVM fix. Platform flash layer not yet functional.
-
Johny Mattsson authored
Heading towards having only ESP32-aware/capable code in this branch.
-
Johny Mattsson authored
-
- 20 Sep, 2016 2 commits
-
-
Johny Mattsson authored
Build for ESP32 on Travis.
-
Johny Mattsson authored
RTOS driver evicted as it did not play nice with stdio etc. Implemented a minimal driver to fully support Lua console on UART0. Output on UART0 done via stdout (provided by the IDF). Input and setup handled via driver_console/console.c. In addition to the direct input function console_getc(), the driver also registers in the syscall tables to enable regular stdio input functions to work (yay!). The Lua VM is still using the direct interface since it's less overhead, but does also work when going through stdin/fd 0. Auto-bauding on the console is not yet functional; revisit when the UART docs are available. Module registration/linking/enabling moved over to be Kconfig based. See updates to base_nodemcu/include/module.h and base_nodemcu/Kconfig for details. The sdk-overrides directory/approach is no longer used. The IDF is simply too different to the old RTOS SDK - we need to adapt our code directly instead. Everything in app/ is now unused, and will need to be gradually migrated into components/ though it is probably better to migrate straight from the latest dev branch.
-
- 16 Sep, 2016 1 commit
-
-
Johny Mattsson authored
Currently the UART driver break boot (or at least output).
-
- 15 Sep, 2016 1 commit
-
-
Johny Mattsson authored
-
- 25 Jun, 2016 1 commit
-
-
Johny Mattsson authored
-
- 24 Jun, 2016 2 commits
-
-
Johny Mattsson authored
This fixes the rather unexpected Fatal Exception(9) crashes when executing something as trivial as "=type(4)". Also ensured the #if/#else structure will complain loudly next time we port to a new board.
-
Johny Mattsson authored
The irom0_flash.bin file gets written to offset 0x40000 in flash. Said file has the following layout | irom0 | text | data | rodata | chksum | ...so the previous approach of having a _flash_used_end symbol at the end of the irom0 section no longer gives us an accurate view of how much of the flash is used.
-
- 23 Jun, 2016 1 commit
-
-
Johny Mattsson authored
New driver is a three-way merger between Espressif's esp8266-rtos-sdk example driver, Espressif's esp32-rtos-sdk not-example driver, and the previous NodeMCU driver, plus some general clean-ups. Basic interactivity is now available on the ESP32!
-
- 22 Jun, 2016 1 commit
-
-
Johny Mattsson authored
Running without interrupt vectors not considered all that useful... Disabled flash-size-byte-setting and SPIFFS formatting on ESP32, for now at least, as both of these appeared to corrupt the flash and prevent subsequent boots. Disabled UART init on ESP32 until the driver gets updated. This now gets us to a banner on ESP32, but not yet a prompt.
-
- 21 Jun, 2016 2 commits
-
-
Johny Mattsson authored
Just appending to previously built bins was not a successful approach...
-
Johny Mattsson authored
-
- 09 Jun, 2016 2 commits
-
-
Johny Mattsson authored
...to deal with the subdirs under bin/
-
Johny Mattsson authored
A fair bit of reshuffling with include paths and overrides was necessary, as the two RTOS SDKs (ESP8266 and ESP32) don't have the same header structure (or even libraries for that matter). Uses the xtensa-esp108-elf toolchain to build. Completely untested beyond linking, as I still can't flash the ESP32 module I have :( I'd be most surprised if it does anything useful at this point considering I've spent almost no time on the linker script or UART setup. Anything using espconn has been ifdef'd out since espconn is not (and probably will not be) available. Notably this includes the entire net module as well as coap, mqtt and enduser_setup. Many (most?) hardware bus drivers and related modules are also ifdef'd out for now due to hardware differences. Functions surrounding sleep, rtc and RF modes have also been hit by the ifdef hammer. Grep'ing for __ESP8266__ and/or FIXME is a quick way of finding these places. With time I hope all of these will be reinstated.
-
- 03 Jun, 2016 3 commits
-
-
Johny Mattsson authored
There is no reason to even be rebuilding SDK lwIP - that was just a legacy of the initial transition to the RTOS SDK.
-
Johny Mattsson authored
Now doesn't recurse into the rtos-sdk for every subdir, does clean lwip, etc.
-
Johny Mattsson authored
-
- 02 Jun, 2016 3 commits
-
-
Johny Mattsson authored
-
Johny Mattsson authored
-
Johny Mattsson authored
-
- 01 Jun, 2016 3 commits
-
-
Johny Mattsson authored
-
Johny Mattsson authored
The old NodeMCU puts() did not do the standard newline, while the RTOS C library one certainly does.
-
Johny Mattsson authored
The os_timer callback is executed from task rtT, prio 14, so they preempt the Lua environment whenever they fire. Ideally we should be using the RTOS timers instead, which run at prio 2 and thus would be more suited for our uses.
-
- 31 May, 2016 3 commits
-
-
Johny Mattsson authored
Since configUSE_TRACE_FACILITY is not enabled :(
-
Johny Mattsson authored
Having the actual function prototype for the internal print() function would be useful...
-
Johny Mattsson authored
-
- 30 May, 2016 3 commits
-
-
Johny Mattsson authored
Uart driver currently disabled as it's not (yet) compatible with RTOS. Running Lua task with excessive stack to avoid smashing it; need to work out what's using so much stack space. Changed some flash reading functions to not attempt to drop an entire 4k flash page onto the stack. Ensure the task pump doesn't attempt to retrieve from uninitialised queues.
-
Johny Mattsson authored
-
Johny Mattsson authored
Turns out ets_printf() lied to me. When handed an aligned string in flash it did 32bit loads on it instead of the expected 8bit loads, so just silencing the exception was enough to give the appearance of it working.
-
- 27 May, 2016 1 commit
-
-
Johny Mattsson authored
Dereferencing struct contents considered harmful...
-
- 26 May, 2016 2 commits
-
-
Johny Mattsson authored
c_strtod and c_getenv are kept since strtod doesn't appear in the SDK's libc, and we want our own c_getenv to initialize the Lua main anyway.
-
Johny Mattsson authored
-