Skip to content

Commit

Permalink
fix: demo build
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Nov 24, 2024
1 parent 040e83f commit f8d6db3
Show file tree
Hide file tree
Showing 33 changed files with 294 additions and 979 deletions.
2 changes: 1 addition & 1 deletion examples/hpm6200evk/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rustflags = [
"-C",
"link-arg=-Tdevice.x", # __VECTORED_INTERRUPTS
"-C",
"link-arg=-Tlink-fixed.x",
"link-arg=-Tlink.x",
"-C",
"link-arg=-Tdefmt.x",
"-C",
Expand Down
8 changes: 4 additions & 4 deletions examples/hpm6200evk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ hpm-hal = { path = "../..", features = ["rt", "embassy", "hpm6280"] }
# embedded helper libraries
defmt = "0.3.8"
defmt-rtt = "0.4.1"
panic-halt = "0.2.0"
panic-halt = "1.0.0"
assign-resources = "0.4.1"
heapless = "0.8.0"

# embassy dependencies
embassy-time = { version = "0.3.0", features = ["tick-hz-1_000_000"] }
embassy-executor = { version = "0.6.0", features = [
"nightly",
embassy-executor = { version = "0.6.3", features = [
# "nightly",
"integrated-timers",
"arch-riscv32",
"executor-thread",
] }
embassy-embedded-hal = "0.2.0"
embassy-sync = "0.6.0"
embassy-sync = "0.6.1"

# embedded-hal ecosystem
embedded-hal = "1.0.0"
Expand Down
229 changes: 0 additions & 229 deletions examples/hpm6200evk/link-fixed.x

This file was deleted.

8 changes: 6 additions & 2 deletions examples/hpm6200evk/memory-ram.x
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ MEMORY
AHB_SRAM : ORIGIN = 0xF0300000, LENGTH = 32K
}
REGION_ALIAS("REGION_TEXT", ILM0);
REGION_ALIAS("REGION_FASTTEXT", ILM0);
REGION_ALIAS("REGION_FASTDATA", DLM0);
REGION_ALIAS("REGION_RODATA", ILM0);
REGION_ALIAS("REGION_DATA", DLM0);
REGION_ALIAS("REGION_BSS", DLM0)
REGION_ALIAS("REGION_BSS", DLM0);
REGION_ALIAS("REGION_HEAP", DLM0);
REGION_ALIAS("REGION_STACK", DLM0);
REGION_ALIAS("REGION_FASTTEXT", ILM0);
REGION_ALIAS("REGION_NONCACHEABLE_RAM", AXI_SRAM);


7 changes: 5 additions & 2 deletions examples/hpm6200evk/memory-xip.x
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ MEMORY
}

REGION_ALIAS("REGION_TEXT", XPI0_APP);
REGION_ALIAS("REGION_FASTTEXT", ILM0);
REGION_ALIAS("REGION_FASTDATA", DLM0);
REGION_ALIAS("REGION_RODATA", XPI0_APP);
REGION_ALIAS("REGION_DATA", DLM0);
REGION_ALIAS("REGION_BSS", DLM0)
REGION_ALIAS("REGION_BSS", DLM0);
REGION_ALIAS("REGION_HEAP", DLM0);
REGION_ALIAS("REGION_STACK", DLM0);
REGION_ALIAS("REGION_FASTTEXT", ILM0);
REGION_ALIAS("REGION_NONCACHEABLE_RAM", AXI_SRAM);

7 changes: 5 additions & 2 deletions examples/hpm6200evk/memory.x
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ MEMORY
}

REGION_ALIAS("REGION_TEXT", XPI0_APP);
REGION_ALIAS("REGION_FASTTEXT", ILM0);
REGION_ALIAS("REGION_FASTDATA", DLM0);
REGION_ALIAS("REGION_RODATA", XPI0_APP);
REGION_ALIAS("REGION_DATA", DLM0);
REGION_ALIAS("REGION_BSS", DLM0)
REGION_ALIAS("REGION_BSS", DLM0);
REGION_ALIAS("REGION_HEAP", DLM0);
REGION_ALIAS("REGION_STACK", DLM0);
REGION_ALIAS("REGION_FASTTEXT", ILM0);
REGION_ALIAS("REGION_NONCACHEABLE_RAM", AXI_SRAM);

2 changes: 1 addition & 1 deletion examples/hpm6300evk/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rustflags = [
"-C",
"link-arg=-Tdevice.x", # __VECTORED_INTERRUPTS
"-C",
"link-arg=-Tlink-fixed.x",
"link-arg=-Tlink.x",
"-C",
"link-arg=-Tdefmt.x",
"-C",
Expand Down
3 changes: 1 addition & 2 deletions examples/hpm6300evk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ hpm-hal = { path = "../..", features = ["rt", "embassy", "hpm6360"] }
defmt = "0.3.8"
defmt-rtt = "0.4.1"
embedded-hal = "1.0.0"
panic-halt = "0.2.0"
panic-halt = "1.0.0"
riscv = { version = "0.11.1", features = ["critical-section-single-hart"] }
riscv-rt = { version = "0.12.2", features = ["single-hart"] }

[profile.release]
strip = false # symbols are not flashed to the microcontroller, so don't strip them.
Expand Down
Loading

0 comments on commit f8d6db3

Please sign in to comment.