Compiling FreeRTOS with FreeRTOS-POSIX on ESP32 failes

Hi @Noedel-Man,

Using the FreeRTOS distribution instead of the one in the ESP IDF will have caveats as some features won’t be available, eg. GDBStub, SMP, etc. I ended up porting it to the modified ESP FreeRTOS code hosted in the ESP IDF v4.2.

I have created a branch on my fork here https://github.com/lundinc2/esp-idf/tree/posix-port with my changes. I had to modify the FreeRTOS+POSIX library as well in order to get a compiling version, and you can see those changes reflected in the submodule pointing to my fork of the POSIX code. I also needed to backport some minor changes to the kernel that were introduced for POSIX.

I modified the IDF hello world example https://github.com/lundinc2/esp-idf/tree/posix-port/examples/get-started/hello_world to compile the POSIX code, and then run the POSIX demo found at https://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_POSIX/demo/posix_demo.html. Running this code requires just navigating to the hello_world directory, and running idf.py flash monitor.

The code compiles and the demo runs, but there is some ugliness left, nonetheless I hope you found this example helpful. This is still a work in progress, so if you have any feedback / changes to share I would be happy to see it.

It would be good to hear about your use case for this library, as it is still in the Labs project state.

Thanks,

Carl