startup-gen
generates startup files (crt0 and linker script) based on
properties of the target device such as: architecture, memory layout, number of
interrupts.
One of the goals of this tool is to make it easier to start developing on micro-controllers by providing the basic elements of a Board Support Package (BSP).
startup-gen
depends on the
template-parser library. Clone
or download the repository and set the GPR_PROJECT_FILE
path:
$ export GPR_PROJECT_PATH=/path/to/templates-parser/
Download and install a native GNAT Community compiler at adacore.com/download.
Build with this command:
$ gprbuild -P startup_gen.gpr
See documentation.
The dev
branch of this repository also contains work-in-progress tools to
build a database of target properties for more than 3000 ARM micro-controllers
from CMSIS-Pack files.