working hal_test

This commit is contained in:
Priec
2025-10-20 22:37:21 +02:00
parent da01c4593e
commit deee05afb5
13 changed files with 721 additions and 425 deletions

20
hal_test/Makefile Normal file
View File

@@ -0,0 +1,20 @@
TARGET = thumbv8m.main-none-eabihf
CHIP = STM32U575ZI
BIN = main
MODE ?= release
ELF = target/$(TARGET)/$(MODE)/$(BIN)
PROBE = probe-rs
.PHONY: all build flash empty
all: build flash
build:
cargo build --target $(TARGET) --$(MODE)
flash: build
$(PROBE) run --chip $(CHIP) $(ELF)
empty:
$(PROBE) erase --chip $(CHIP)