zigembeddedgroup / stmicro-stm32 Goto Github PK
View Code? Open in Web Editor NEWHAL for stm32 (STMicro) devices
License: MIT License
HAL for stm32 (STMicro) devices
License: MIT License
Revert the #31 workaround for ziglang/zig#17882, once we switch to Zig 0.12.0 (or 0.11.1), assuming that newer version fixes the issue.
First, build.zig is trying to access a non-existing field (see #24 ). After fixing this though, compilation fails with a weird error.
Output of running zig build:
zig build-exe STM32F429.minimal Debug thumb-freestanding-none: error: the following command terminated unexpectedly:
/home/fran/.zig/zig build-exe /home/fran/Documents/stmicro-stm32/deps/microzig/src/start.zig -fno-strip --cache-dir /home/fran
/Documents/stmicro-stm32/zig-cache --global-cache-dir /home/fran/.cache/zig --name STM32F429.minimal -fcompiler-rt -fsingle-th
readed -target thumb-freestanding-none -mcpu cortex_m4 --script /home/fran/Documents/stmicro-stm32/zig-cache/microzig/9eaf9c0e
5ae93f43e508a2a8b6abb0a6/STM32F429_ARM Cortex-M4.ld --mod cpu:microzig:/home/fran/Documents/stmicro-stm32/deps/microzig/src/mo
dules/cpus/cortex-m.zig --mod chip:microzig:/home/fran/Documents/stmicro-stm32/src/chips/STM32F429.zig --mod microzig:config,c
hip,cpu,hal:/home/fran/Documents/stmicro-stm32/deps/microzig/src/microzig.zig --mod hal:microzig:/home/fran/Documents/stmicro-
stm32/src/hals/STM32F429.zig --mod config::/home/fran/Documents/stmicro-stm32/zig-cache/microzig/config-94b727d09a5e61986629e2
266c040a6a.zig --mod app:microzig:/home/fran/Documents/stmicro-stm32/test/programs/minimal.zig --deps app,microzig --listen=-
... (All boards fail the same way)
Build Summary: 8/25 steps succeeded; 8 failed (disable with --summary none)
install transitive failure
├─ install STM32F3DISCOVERY.minimal transitive failure
│ └─ zig build-exe STM32F3DISCOVERY.minimal Debug thumb-freestanding-none failure
├─ install STM32F4DISCOVERY.minimal transitive failure
│ └─ zig build-exe STM32F4DISCOVERY.minimal Debug thumb-freestanding-none failure
├─ install STM3240G_EVAL.minimal transitive failure
│ └─ zig build-exe STM3240G_EVAL.minimal Debug thumb-freestanding-none failure
├─ install STM32F429IDISCOVERY.minimal transitive failure
│ └─ zig build-exe STM32F429IDISCOVERY.minimal Debug thumb-freestanding-none failure
├─ install STM32F103.minimal transitive failure
│ └─ zig build-exe STM32F103.minimal Debug thumb-freestanding-none failure
├─ install STM32F303.minimal transitive failure
│ └─ zig build-exe STM32F303.minimal Debug thumb-freestanding-none failure
├─ install STM32F407.minimal transitive failure
│ └─ zig build-exe STM32F407.minimal Debug thumb-freestanding-none failure
└─ install STM32F429.minimal transitive failure
└─ zig build-exe STM32F429.minimal Debug thumb-freestanding-none failure
error: the following build command failed with exit code 1:
/home/fran/Documents/stmicro-stm32/zig-cache/o/cf9b1829ca48e4a32cb2a3193eecd0f2/build /home/fran/.zig/zig /home/fran/Documents
/stmicro-stm32 /home/fran/Documents/stmicro-stm32/zig-cache /home/fran/.cache/zig
I'm running this with zig version 0.11.0
Think there might be an issue with the creation of the linker files, I think the \ (.rodata)
should be moved from the .data section to the .text section below the \ (.text) line
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.