Monologue continued... I think that what I need to do is grab FreeRTOS from source and integrate it into Espruino. Make that work on the EMW3165. Then continue and deal with LwIP and WWD. Trying to just glue the whole thing together isn't magically going to work...
To integrate FreeRTOS is similar to what we had to do with the esp8266:
the main espruino loop needs to run in a low priority thread
the timer stuff needs to run in a high priority thread and use FreeRTOS timers
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Monologue continued... I think that what I need to do is grab FreeRTOS from source and integrate it into Espruino. Make that work on the EMW3165. Then continue and deal with LwIP and WWD. Trying to just glue the whole thing together isn't magically going to work...
To integrate FreeRTOS is similar to what we had to do with the esp8266: