blob: 210b8602891a195d03fb4222a29903d66d1ee4d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# zig-stm32l476
This is a "bare-metal" [Zig](https://ziglang.org/) project for the NUCLEO-L476RG development board that I'm using to both build up some Zig skills and to tinker with embedded HAL/OS design.
Run `zig build` to create an ELF file at `zig-out/bin/stm32`. The `upload.sh` script creates a hex version of the binary and tries to upload it via [OpenOCD](https://openocd.org/).
## What's working
* Startup: stack, .bss, and .data initialization, minimal vector table (replaced by `interrupt.zig`)
* GPIO
* Interrupt handling
* SysTick timer
|