stm32f3discovery
diff --git a/Makefile b/Makefile index e32decb..81829e2 100644 --- a/Makefile +++ b/Makefile
@@ -18,6 +18,7 @@ @echo " - nrf52" @echo " - imxrt1050" @echo " - apollo3" + @echo " - stm32f3discovery" @echo @echo "Run 'make setup' to setup Rust to build libtock-rs." @echo "Run 'make <board>' to build libtock-rs for that board" @@ -132,6 +133,14 @@ flash-nrf52840: PLATFORM=nrf52840 cargo run $(release) --target=thumbv7em-none-eabi --example $(EXAMPLE) $(features) +.PHONY: stm32f3discovery +stm32f3discovery: + PLATFORM=stm32f3discovery cargo build $(release) --target=thumbv7em-none-eabi --examples $(features) + +.PHONY: flash-stm32f3discovery +flash-stm32f3discovery: + PLATFORM=stm32f3discovery cargo run $(release) --target=thumbv7em-none-eabi --example $(EXAMPLE) $(features) + .PHONY: opentitan opentitan: PLATFORM=opentitan cargo build $(release) --target=riscv32imc-unknown-none-elf --examples $(features)
diff --git a/boards/layout_stm32f3discovery.ld b/boards/layout_stm32f3discovery.ld new file mode 100644 index 0000000..9368003 --- /dev/null +++ b/boards/layout_stm32f3discovery.ld
@@ -0,0 +1,11 @@ +/* Layout for the stm32f3discovery board, usable by the examples in this repository. */ + +MEMORY { + /* The application region is 64 bytes (0x40) */ + FLASH (rx) : ORIGIN = 0x08020040, LENGTH = 0x00020000 + SRAM (rwx) : ORIGIN = 0x20004000, LENGTH = 48K +} + +MPU_MIN_ALIGN = 8K; + +INCLUDE layout_generic.ld