From b161dd4b11d5aab145950e6ce41eae4d4378d25b Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen <ulf.lilleengen@gmail.com> Date: Thu, 11 Jan 2024 20:33:27 +0100 Subject: [PATCH] use secure mode --- examples/nrf9160/Cargo.toml | 2 +- examples/nrf9160/memory.x | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/nrf9160/Cargo.toml b/examples/nrf9160/Cargo.toml index b35b7778d..b6ee40a37 100644 --- a/examples/nrf9160/Cargo.toml +++ b/examples/nrf9160/Cargo.toml @@ -9,7 +9,7 @@ embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } embassy-sync = { version = "0.5.0", path = "../../embassy-sync", features = ["defmt"] } embassy-executor = { version = "0.4.0", path = "../../embassy-executor", features = ["task-arena-size-32768", "arch-cortex-m", "executor-thread", "executor-interrupt", "defmt", "integrated-timers"] } embassy-time = { version = "0.2", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime"] } -embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "nrf9160-ns", "time-driver-rtc1", "gpiote", "unstable-pac", "time"] } +embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "nrf9160-s", "time-driver-rtc1", "gpiote", "unstable-pac", "time"] } embassy-net = { version = "0.3", path = "../../embassy-net", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet"] } embassy-usb = { version = "0.1.0", path = "../../embassy-usb", features = ["defmt"] } embedded-io = { version = "0.6.0", features = ["defmt-03"] } diff --git a/examples/nrf9160/memory.x b/examples/nrf9160/memory.x index 4d1d77c00..4c7d4ebf0 100644 --- a/examples/nrf9160/memory.x +++ b/examples/nrf9160/memory.x @@ -1,7 +1,5 @@ MEMORY { - /* Assumes Secure Partition Manager (SPM) flashed at the start */ - SPM : ORIGIN = 0x00000000, LENGTH = 320K - FLASH : ORIGIN = 0x00050000, LENGTH = 704K + FLASH : ORIGIN = 0x00000000, LENGTH = 1024K RAM : ORIGIN = 0x20018000, LENGTH = 160K }