Skip to content

Commit c0403c4

Browse files
authored
Merge pull request #28 from tock/update-aug-2023-wm1110
Aug 2023: update to recent Tock, and add wm1110 dev board
2 parents 46cdb37 + c494032 commit c0403c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1702
-905
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
build
22
target
33
local_cargo
4+
Cargo.lock
45

arch/bootloader_cortexm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
authors = ["Tock Project Developers <[email protected]>"]
55

66
[dependencies]
7-
kernel = { git = "https://github.com/tock/tock", rev = "405417" }
7+
kernel = { git = "https://github.com/tock/tock", rev = "2ff6868" }
88
#kernel = { path = "../../../tock/kernel" }
99

1010
bootloader = { path = "../../bootloader" }

arch/bootloader_cortexm/src/jumper.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ impl CortexMJumper {
88

99
impl bootloader::interfaces::Jumper for CortexMJumper {
1010
fn jump(&self, address: u32) -> ! {
11+
use core::arch::asm;
1112
unsafe {
1213
asm!(
1314
".syntax unified \n\
14-
mov r0, {0} // The address of the payload's .vectors \n\
15+
mov r0, {address} // The address of the payload's .vectors \n\
1516
ldr r1, =0xe000ed08 // The address of the VTOR register (0xE000E000(SCS) + 0xD00(SCB) + 0x8(VTOR)) \n\
1617
str r0, [r1] // Move the payload's VT address into the VTOR register \n\
1718
ldr r1, [r0] // Move the payload's initial SP into r1 \n\
1819
mov sp, r1 // Set our SP to that \n\
1920
ldr r0, [r0, #4] // Load the payload's ENTRY into r0 \n\
2021
bx r0 // Whoopee",
21-
in(reg) address,
22+
address = in(reg) address,
2223
);
2324
}
2425
loop {}

arch/bootloader_cortexm/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(const_fn, asm)]
21
#![no_std]
32

43
pub mod jumper;

boards/Common.mk

Lines changed: 236 additions & 88 deletions
Large diffs are not rendered by default.

boards/clue_nrf52840-bootloader/Cargo.lock

Lines changed: 0 additions & 181 deletions
This file was deleted.

boards/clue_nrf52840-bootloader/Cargo.toml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ name = "clue_nrf52840-bootloader"
33
version = "0.1.0"
44
authors = ["Tock Project Developers <[email protected]>"]
55
build = "build.rs"
6-
edition = "2018"
6+
edition = "2021"
77

88
[dependencies]
9-
cortexm4 = { git = "https://github.com/tock/tock", rev = "405417" }
10-
capsules = { git = "https://github.com/tock/tock", rev = "405417" }
11-
kernel = { git = "https://github.com/tock/tock", rev = "405417" }
12-
nrf52 = { git = "https://github.com/tock/tock", rev = "405417" }
13-
nrf52840 = { git = "https://github.com/tock/tock", rev = "405417" }
14-
components = { git = "https://github.com/tock/tock", rev = "405417" }
15-
nrf52_components = { git = "https://github.com/tock/tock", rev = "405417" }
9+
cortexm4 = { git = "https://github.com/tock/tock", rev = "2ff6868" }
10+
capsules-core = { git = "https://github.com/tock/tock", rev = "2ff6868" }
11+
capsules-extra = { git = "https://github.com/tock/tock", rev = "2ff6868" }
12+
kernel = { git = "https://github.com/tock/tock", rev = "2ff6868" }
13+
nrf52 = { git = "https://github.com/tock/tock", rev = "2ff6868" }
14+
nrf52840 = { git = "https://github.com/tock/tock", rev = "2ff6868" }
15+
components = { git = "https://github.com/tock/tock", rev = "2ff6868" }
16+
nrf52_components = { git = "https://github.com/tock/tock", rev = "2ff6868" }
1617

1718
# For Development
1819
# cortexm4 = { path = "../../../tock/arch/cortex-m4" }

boards/clue_nrf52840-bootloader/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fn main() {
55
println!("cargo:rerun-if-changed=../kernel_layout.ld");
66

77
let mut f = bootloader_attributes::get_file();
8-
bootloader_attributes::write_flags(&mut f, "1.1.0", 0x36000);
8+
bootloader_attributes::write_flags(&mut f, "1.1.3", 0x36000);
99
bootloader_attributes::write_attribute(&mut f, "board", "clue_nrf52840");
1010
bootloader_attributes::write_attribute(&mut f, "arch", "cortex-m4");
1111
bootloader_attributes::write_attribute(&mut f, "appaddr", "0x80000");

0 commit comments

Comments
 (0)