Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yoghurt-x86/zig-stm32f401re
https://github.com/yoghurt-x86/zig-stm32f401re
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/yoghurt-x86/zig-stm32f401re
- Owner: yoghurt-x86
- Created: 2024-10-14T21:28:24.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-10-17T10:27:45.000Z (3 months ago)
- Last Synced: 2024-11-10T10:41:26.312Z (about 2 months ago)
- Language: C
- Size: 4.84 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zig project for stm32f401re
My attempt to follow this guide: https://github.com/haydenridd/stm32-zig-porting-guide
To build zig for my nucleo-64 board.Find the cubemx hal output in ./stm32_hal
builds by running `zig build`
However, i cannot flash the board from the output:
`sudo openocd -f $OPENOCD_PATH/share/openocd/scripts/board/st_nucleo_f4.cfg -c "init; reset halt; flash write_image erase zig-out/bin/blinky.hex; reset run; exit"`I get the error:
```
Warn : no flash bank found for address 0x00010134
Warn : no flash bank found for address 0x00022810
```But the program from the cubemx Makefile can flash with no modifications needed!
If i run `make` on the cubemx project in the `stm32_hal` folder
I can flash the board with:
`sudo openocd -f $OPENOCD_PATH/share/openocd/scripts/board/st_nucleo_f4.cfg -c "init; reset halt; flash write_image erase build/cubemx.hex; reset run; exit"`If I adjust the MakeFile to use `zig cc` to compile it still works.
However i don't know why the `zig build` doesn't work still.