Skip to content

Commit a19ee49

Browse files
authored
Add grapefruit/app-mini.toml (#2264)
While debugging #2236, I wanted a tiny image that produced compact system dumps – they're faster to load in a debug build of Humility, and we'll eventually want to commit one to the Humility test suite. This image produces a 421KiB dump, versus 7 MiB for a full Cosmo image. It's just enough to blink an LED so that you know it's been flashed and is running.
1 parent 2825913 commit a19ee49

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

app/grapefruit/app-mini.toml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Tiny Grapefruit image, mostly for testing Humility
2+
board = "grapefruit"
3+
name = "grapefruit-mini"
4+
target = "thumbv7em-none-eabihf"
5+
chip = "../../chips/stm32h7"
6+
memory = "memory-large.toml"
7+
stacksize = 512
8+
9+
[kernel]
10+
name = "grapefruit"
11+
requires = {flash = 32768, ram = 2048}
12+
features = ["measurement-handoff"]
13+
extern-regions = ["dtcm"]
14+
15+
[tasks.jefe]
16+
name = "task-jefe"
17+
priority = 0
18+
start = true
19+
notifications = ["fault", "timer"]
20+
extern-regions = ["sram1", "sram2", "sram3", "sram4"]
21+
22+
[tasks.jefe.config.allowed-callers]
23+
set_reset_reason = ["sys"]
24+
25+
[tasks.sys]
26+
name = "drv-stm32xx-sys"
27+
features = ["h753"]
28+
priority = 1
29+
uses = ["rcc", "gpios", "system_flash", "syscfg"]
30+
start = true
31+
task-slots = ["jefe"]
32+
33+
[tasks.user_leds]
34+
name = "drv-user-leds"
35+
features = ["stm32h7"]
36+
priority = 5
37+
start = true
38+
task-slots = ["sys"]
39+
notifications = ["timer"]
40+
41+
[tasks.pong]
42+
name = "task-pong"
43+
priority = 8
44+
start = true
45+
task-slots = ["user_leds"]
46+
notifications = ["timer"]
47+
48+
[tasks.idle]
49+
name = "task-idle"
50+
priority = 9
51+
start = true

drv/user-leds/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ cfg_if::cfg_if! {
9797
target_board = "psc-b",
9898
target_board = "psc-c",
9999
target_board = "oxcon2023g0",
100+
target_board = "grapefruit",
100101
))] {
101102
#[derive(enum_map::Enum, Copy, Clone, FromPrimitive)]
102103
enum Led {

0 commit comments

Comments
 (0)