Minimal bare metal Zig for Arm Cortex-M33 using STM32U585AI on the B-U585I-IOT02A board.
Inspired by and builds on the embedded_zig project.
Tested with Zig v0.14.x and v0.15.x.
git clone https://github.com/larschrj/Zortex-M33.git
cd ./Zortex-M33
zig build
Example .elf files are placed in zig-out/bin/
.
Using OpenOCD
openocd -f interface/stlink.cfg -f target/stm32u5x.cfg -c "program zig-out/bin/blinky.elf reset exit"
Start OpenOCD
openocd -f interface/stlink.cfg -f target/stm32u5x.cfg
In another terminal
arm-none-eabi-gdb zig-out/bin/blinky.elf