diff options
| author | Dmitry Tarnyagin <[email protected]> | 2025-10-28 16:26:55 +0100 |
|---|---|---|
| committer | Dmitry Tarnyagin <[email protected]> | 2025-10-28 16:43:47 +0100 |
| commit | 2f88a7c1b84235f21515d2f8cedb7c3eeecacb41 (patch) | |
| tree | c7d4b14a49c604e8baec22f0e75b3beed85a33d2 /embassy-nrf/src | |
| parent | afe9defe31c79444d3bf8eca5e2f0d4161fd96f9 (diff) | |
nrf5340: Do not write to UICR from non-secure world
Ref nRF5340 PS v1.6:
> UICR is only accessible by secure code. Any write from non-secure code will be faulted.
Diffstat (limited to 'embassy-nrf/src')
| -rw-r--r-- | embassy-nrf/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-nrf/src/lib.rs b/embassy-nrf/src/lib.rs index 2f7505746..4c3b92a83 100644 --- a/embassy-nrf/src/lib.rs +++ b/embassy-nrf/src/lib.rs | |||
| @@ -922,7 +922,7 @@ pub fn init(config: config::Config) -> Peripherals { | |||
| 922 | } | 922 | } |
| 923 | } | 923 | } |
| 924 | 924 | ||
| 925 | #[cfg(any(feature = "_nrf52", feature = "_nrf5340-app"))] | 925 | #[cfg(any(feature = "_nrf52", all(feature = "_nrf5340-app", feature = "_s")))] |
| 926 | unsafe { | 926 | unsafe { |
| 927 | let value = if cfg!(feature = "nfc-pins-as-gpio") { 0 } else { 1 }; | 927 | let value = if cfg!(feature = "nfc-pins-as-gpio") { 0 } else { 1 }; |
| 928 | let res = uicr_write_masked(consts::UICR_NFCPINS, value, 1); | 928 | let res = uicr_write_masked(consts::UICR_NFCPINS, value, 1); |
