Trying out the Zig programming language on the NUCLEO-L476RG dev board
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Clyne c7a89595ea
change license to gpl3
2 months ago
src change license to gpl3 2 months ago
.gitignore initial commit 2 months ago
LICENSE change license to gpl3 2 months ago
README.md add readme 2 months ago
build.zig better startup: all zig, bss and data init'd 2 months ago
link.ld better startup: all zig, bss and data init'd 2 months ago
upload.sh add openocd script 2 months ago

README.md

zig-stm32l476

This is a "bare-metal" Zig 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.

What's working

  • Startup: stack, .bss, and .data initialization, minimal vector table (replaced by interrupt.zig)
  • GPIO
  • Interrupt handling
  • SysTick timer