Skip to content

Commit 0d6713f

Browse files
committed
bumped aarch32 dependencies
1 parent 7affec2 commit 0d6713f

File tree

22 files changed

+72
-52
lines changed

22 files changed

+72
-52
lines changed

firmware/examples/defmt/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository = "https://egit.irs.uni-stuttgart.de/rust/zynq7000-rs"
99
license = "MIT OR Apache-2.0"
1010

1111
[dependencies]
12-
aarch32-cpu = { version = "0.1" }
12+
aarch32-cpu = { version = "0.2" }
1313
zynq7000-rt = { path = "../../zynq7000-rt" }
1414
zynq7000 = { path = "../../zynq7000" }
1515
zynq7000-hal = { path = "../../zynq7000-hal", features = ["defmt"] }

firmware/examples/defmt/memory.x

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@ MEMORY
44
Leave 1 MB of memory which will be configured as uncached device memory by the MMU. This is
55
recommended for something like DMA descriptors. */
66
/*CODE(rx) : ORIGIN = 0x00100000, LENGTH = 63M*/
7+
/* CODE(rx) : ORIGIN = 0x00100000, LENGTH = 62M */
78
CODE(rx) : ORIGIN = 0x00000000, LENGTH = 192K
9+
/* STACK: ORIGIN = 0x3F00000, LENGTH = 1M */
810
UNCACHED(rx): ORIGIN = 0x4000000, LENGTH = 1M
11+
OCM_UPPER(rx): ORIGIN = 0xFFFF0000, LENGTH = 64K
912
}
1013

1114
REGION_ALIAS("VECTORS", CODE);
1215
REGION_ALIAS("DATA", CODE);
16+
/* Use the upper OCM as the stack */
17+
REGION_ALIAS("STACKS", OCM_UPPER);
1318

1419
SECTIONS
1520
{

firmware/examples/embassy/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ keywords = ["no-std", "arm", "cortex-a", "amd", "zynq7000"]
1111
categories = ["embedded", "no-std", "hardware-support"]
1212

1313
[dependencies]
14-
aarch32-cpu = { version = "0.1", features = ["critical-section-single-core"] }
14+
aarch32-cpu = { version = "0.2", features = ["critical-section-single-core"] }
1515
zynq7000-rt = { path = "../../zynq7000-rt" }
1616
zynq7000 = { path = "../../zynq7000" }
1717
zynq7000-hal = { path = "../../zynq7000-hal" }

firmware/examples/embassy/memory.x

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
MEMORY
22
{
3-
/* Zedboard: 512 MB DDR3. Only use 63 MB for now, should be plenty for a bare-metal app.
4-
Leave 1 MB of memory which will be configured as uncached device memory by the MMU. This is
5-
recommended for something like DMA descriptors. */
6-
CODE(rx) : ORIGIN = 0x00100000, LENGTH = 63M
3+
/* Zedboard: 512 MB DDR3. Only use 62 MB for now, should be plenty for a bare-metal app.
4+
1 MB stack memory and 1 MB of memory which will be configured as uncached device memory by the
5+
MMU. This is recommended for something like DMA descriptors. */
6+
CODE(rx) : ORIGIN = 0x00100000, LENGTH = 62M
7+
STACKS : ORIGIN = 0x3F00000, LENGTH = 1M
78
UNCACHED(rx): ORIGIN = 0x4000000, LENGTH = 1M
9+
OCM_UPPER(rx): ORIGIN = 0xFFFF0000, LENGTH = 64K
810
}
911

1012
REGION_ALIAS("VECTORS", CODE);

firmware/examples/simple/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository = "https://egit.irs.uni-stuttgart.de/rust/zynq7000-rs"
99
license = "MIT OR Apache-2.0"
1010

1111
[dependencies]
12-
aarch32-cpu = { version = "0.1" }
12+
aarch32-cpu = { version = "0.2" }
1313
zynq7000-rt = { path = "../../zynq7000-rt" }
1414
zynq7000 = { path = "../../zynq7000" }
1515
zynq7000-hal = { path = "../../zynq7000-hal" }

firmware/examples/simple/memory.x

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
MEMORY
22
{
3-
/* Zedboard: 512 MB DDR3. Only use 63 MB for now, should be plenty for a bare-metal app.
4-
Leave 1 MB of memory which will be configured as uncached device memory by the MMU. This is
5-
recommended for something like DMA descriptors. */
6-
CODE(rx) : ORIGIN = 0x00100000, LENGTH = 63M
3+
/* Zedboard: 512 MB DDR3. Only use 62 MB for now, should be plenty for a bare-metal app.
4+
1 MB stack memory and 1 MB of memory which will be configured as uncached device memory by the
5+
MMU. This is recommended for something like DMA descriptors. */
6+
CODE(rx) : ORIGIN = 0x00100000, LENGTH = 62M
7+
STACKS : ORIGIN = 0x3F00000, LENGTH = 1M
78
UNCACHED(rx): ORIGIN = 0x4000000, LENGTH = 1M
9+
OCM_UPPER(rx): ORIGIN = 0xFFFF0000, LENGTH = 64K
810
}
911

1012
REGION_ALIAS("VECTORS", CODE);

firmware/examples/zedboard/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ keywords = ["no-std", "arm", "cortex-a", "amd", "zynq7000"]
1111
categories = ["embedded", "no-std", "hardware-support"]
1212

1313
[dependencies]
14-
aarch32-cpu = { version = "0.1" }
14+
aarch32-cpu = { version = "0.2" }
1515
zynq7000-rt = { path = "../../zynq7000-rt" }
1616
zynq7000 = { path = "../../zynq7000" }
1717
zynq7000-hal = { path = "../../zynq7000-hal" }
@@ -22,23 +22,23 @@ l3gd20 = { git = "https://github.com/us-irs/l3gd20.git", branch = "add-async-if"
2222
embedded-io = "0.7"
2323
bitbybit = "1.4"
2424
arbitrary-int = "2"
25-
embedded-io-async = "0.6"
25+
embedded-io-async = "0.7"
2626
critical-section = "1"
2727
static_cell = "2"
28-
embedded-alloc = "0.6"
28+
embedded-alloc = "0.7"
2929
embedded-hal = "1"
3030
embedded-hal-async = "1"
3131
fugit = "0.3"
3232
log = "0.4"
3333
rand = { version = "0.9", default-features = false, features = ["small_rng"] }
3434

35-
embassy-executor = { git = "https://github.com/us-irs/embassy.git", branch = "cortex-ar-update", features = [
35+
embassy-executor = { git = "https://github.com/us-irs/embassy.git", rev = "fd40f3e2f2efb67434a9e7d90eb35a30e30d1736", features = [
3636
"arch-cortex-ar",
3737
"executor-thread",
3838
]}
3939
# TODO: Remove generic-queue-16 feature as soon as upstream executor is used again.
4040
embassy-time = { version = "0.5", features = ["tick-hz-1_000_000", "generic-queue-16"] }
41-
embassy-net = { version = "0.7", features = ["dhcpv4", "packet-trace", "medium-ethernet", "icmp", "tcp", "udp"] }
41+
embassy-net = { version = "0.8", features = ["dhcpv4", "packet-trace", "medium-ethernet", "icmp", "tcp", "udp"] }
4242
embassy-sync = { version = "0.7" }
4343
# TODO: Bump as soon as new compatible smoltcp/embassy-net version is released.
4444
heapless = "0.8"

firmware/examples/zedboard/memory.x

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
MEMORY
22
{
3-
/* Zedboard: 512 MB DDR3. Only use 63 MB for now, should be plenty for a bare-metal app.
4-
Leave 1 MB of memory which will be configured as uncached device memory by the MMU. This is
5-
recommended for something like DMA descriptors. */
6-
CODE(rx) : ORIGIN = 0x00100000, LENGTH = 63M
3+
/* Zedboard: 512 MB DDR3. Only use 62 MB for now, should be plenty for a bare-metal app.
4+
1 MB stack memory and 1 MB of memory which will be configured as uncached device memory by the
5+
MMU. This is recommended for something like DMA descriptors. */
6+
CODE(rx) : ORIGIN = 0x00100000, LENGTH = 62M
7+
STACKS : ORIGIN = 0x3F00000, LENGTH = 1M
78
UNCACHED(rx): ORIGIN = 0x4000000, LENGTH = 1M
9+
OCM_UPPER(rx): ORIGIN = 0xFFFF0000, LENGTH = 64K
810
}
911

1012
REGION_ALIAS("VECTORS", CODE);

firmware/examples/zedboard/src/bin/ethernet.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,9 @@ async fn main(spawner: Spawner) -> ! {
373373
let tcp_socket = TcpSocket::new(stack, RX_TCP_BUFS.take(), TX_TCP_BUFS.take());
374374

375375
// Spawn all embassy tasks.
376-
spawner.spawn(embassy_net_task(runner)).unwrap();
377-
spawner.spawn(udp_task(udp_socket)).unwrap();
378-
spawner.spawn(tcp_task(tcp_socket)).unwrap();
376+
spawner.spawn(embassy_net_task(runner).unwrap());
377+
spawner.spawn(udp_task(udp_socket).unwrap());
378+
spawner.spawn(tcp_task(tcp_socket).unwrap());
379379

380380
let mut mio_led = Output::new_for_mio(gpio_pins.mio.mio7, PinState::Low);
381381

firmware/examples/zedboard/src/bin/l3gd20h-spi-mio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ async fn main(spawner: Spawner) -> ! {
155155
}
156156
}
157157

158-
spawner.spawn(logger_task(uart)).unwrap();
158+
spawner.spawn(logger_task(uart).unwrap());
159159
if BLOCKING {
160160
blocking_application(mio_led, emio_leds, spi).await;
161161
} else {

0 commit comments

Comments
 (0)