forked from tralamazza/embedded_zig
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Tralamazza
committed
Jun 19, 2019
1 parent
c11ce66
commit bc6bfd7
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,26 @@ | ||
# embedded_zig | ||
|
||
A "minimal" ARM cortex-M firmware in Zig. | ||
|
||
## building | ||
|
||
Get [GNU Arm Embedded Toolchain](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm) and [Zig](https://ziglang.org/) in `PATH` and type: | ||
|
||
make | ||
|
||
## issues | ||
|
||
You can try uncommenting the line below (in the `Makefile`) to use the lld (don't forget to comment out ld): | ||
|
||
zig build-exe ${BUILD_FLAGS} $(OBJS:%=--object %) --name [email protected] --linker-script ${LINKER_SCRIPT} | ||
# arm-none-eabi-ld ${OBJS} -o [email protected] -T ${LINKER_SCRIPT} -Map [email protected] --gc-sections | ||
|
||
## raq (rarely asked questions) | ||
|
||
a) Shouldn't the Makefile... | ||
|
||
A: lalalala | ||
|
||
b) How do I flash this? | ||
|
||
A: yes |