eclipse-4diac / 4diac-fbe

Eclipse Public License 2.0
3 stars 5 forks source link

FreeRTOS support for two targets #9

Open jwalt opened 6 months ago

jwalt commented 6 months ago

This patch adds support for FreeRTOS-based 4diac FORTE binaries.

The test configurations run in qemu (see run_in_qemu.sh shell scripts). Unfortunately, the raspi version does not yet have networking, but the zynq version works, including connecting from 4diac IDE to the qemu emulator.

The FreeRTOS recipe is structured so that other devices can be added. A generic part allows using LwIP or FreeRTOS-plus-TCP as network layer. There is some amount of device-specific code required, the two platforms show the complexity of adding a new platform (which is unfortunately not low).

Everything builds on picolibc as C library, which has native thread-local-storage support, and FreeRTOS-cpp11 which adds basic C++11 STL support for FreeRTOS platforms.

Right now, FORTE has a tiny bug that prevents successful building, see eclipse-4diac/4diac-forte#63