For IoT, if it cannot run Linux, then should use FreeRTOS + lwIP (?).
This work is based on the the original work of William Davy on Posix/Linux Simulator for FreeRTOS, and megakilo fork.
Clone with --recursive
Get the FreeRTOS v9.0.0 with make -f Makefile.tools
if you didn't clone with --recursive
git clone https://github.com/peterzos/lwip.git
git clone https://github.com/peterzos/lwip-contrib.git
Under examples/freertos-demo, run make
, then ./main.out
to see output.
cd examples/freertos-lwip_ppp/lwip_obj/
make
cd ..
make
./demo
For debugging use examples/freertos-lwip_ppp/.gdbinit
See demo makefile to create your own program.