Skip to content

Commit

Permalink
Add stm32f3discovery board to the workspace.
Browse files Browse the repository at this point in the history
  • Loading branch information
gendx committed Apr 7, 2020
1 parent 6f6911c commit 927cb37
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ members = [
"boards/nucleo_f429zi",
"boards/nucleo_f446re",
"boards/opentitan",
"boards/stm32f3discovery",
"capsules",
"chips/arty_e21_chip",
"chips/cc26x2",
Expand All @@ -29,6 +30,7 @@ members = [
"chips/nrf5x",
"chips/sam4l",
"chips/sifive",
"chips/stm32f3xx",
"chips/stm32f4xx",
"kernel",
"libraries/enum_primitive",
Expand Down
12 changes: 0 additions & 12 deletions boards/stm32f3discovery/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,6 @@ authors = ["Tock Project Developers <tock-dev@googlegroups.com>"]
build = "build.rs"
edition = "2018"

[profile.dev]
panic = "abort"
lto = false
opt-level = "z"
debug = true

[profile.release]
panic = "abort"
lto = true
opt-level = "z"
debug = true

[dependencies]
components = { path = "../components" }
cortexm4 = { path = "../../arch/cortex-m4" }
Expand Down
6 changes: 3 additions & 3 deletions boards/stm32f3discovery/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ CWD=$(shell pwd)
# sudo is needed for libusb access to work properly

.PHONY: flash-debug
flash-debug: target/$(TARGET)/debug/$(PLATFORM).elf
flash-debug: $(TOCK_ROOT_DIRECTORY)target/$(TARGET)/debug/$(PLATFORM).elf
$(OPENOCD) $(OPENOCD_OPTIONS) -c "init; reset halt; flash write_image erase $(CWD)/$<; verify_image $(CWD)/$<; reset; shutdown"

.PHONY: flash
flash: target/$(TARGET)/release/$(PLATFORM).elf
flash: $(TOCK_ROOT_DIRECTORY)target/$(TARGET)/release/$(PLATFORM).elf
$(OPENOCD) $(OPENOCD_OPTIONS) -c "init; reset halt; flash write_image erase $(CWD)/$<; verify_image $(CWD)/$<; reset; shutdown"

.PHONY: program
program: target/$(TARGET)/debug/$(PLATFORM).elf
program: $(TOCK_ROOT_DIRECTORY)target/$(TARGET)/debug/$(PLATFORM).elf
$(error See README.md and update this section accordingly)

0 comments on commit 927cb37

Please sign in to comment.