Temtaime / d_c_arm_test

C + D + dpp + libopencm3 + freertos test project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C + D + FreeRTOS
cross-compilation for
bare metal devices
=====================

Prerequisites:

- Installed: dub, ldc2, clang-11, libclang1-10 (used by dpp), gcc-arm-none-eabi

PREBUILD:

$ dub fetch dpp # d++, headers parser

BUILD STEPS:

cd into this repository and:

$ meson setup --cross-file arm_cortex_m4_cross.ini -Doptimization=s -Ddebug=true builddir
$ cd build
$ ninja

This steps will produce file firmware.elf: "ELF 32-bit LSB executable,
ARM, EABI5 version 1 (SYSV), statically linked, with debug_info,
not stripped".

BUILD using docker

cd into this repository and:

$ docker build -t d_c_arm_test .
$ docker create -ti --name dummy d_c_arm_test bash && docker cp dummy:/tmp/project/build/firmware.elf firmware.elf && docker rm -f dummy

TODO:

- Please see Github "Issues" section

About

C + D + dpp + libopencm3 + freertos test project


Languages

Language:C++ 47.0%Language:D 19.2%Language:C 18.1%Language:Assembly 8.1%Language:CMake 4.7%Language:Python 1.4%Language:Meson 1.3%Language:Makefile 0.2%Language:Dockerfile 0.1%