Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
diondokter authored Feb 12, 2025
1 parent 415900b commit 9ff51a1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,12 @@ MEMORY

### Secure and nonsecure operation

The library can be used in secure and non-secure contexts. Some additional initialization is necessary for the secure context because the underlying libmodem C library by Nordic expects access to nonsecure memory and resources. If you do not use the memory layout defined above, you need to adapt the addresses below.
Warning: The underlying C library, `libmodem`, assumes and 'officially' requires to be run in the non-secure mode of the chip.
So that's the only official support this wrapper can deliver too.

For running in the secure context:
The library *can* be used in secure contexts, though. Some additional initialization is necessary for the secure context because the underlying libmodem C library by Nordic expects access to nonsecure memory and resources. If you do not use the memory layout defined above, you need to adapt the addresses below.

For running in the secure context on some chips and version and at your own risk and peril:
```rust,ignore
// Initializing embassy_nrf has to come first because it assumes POWER and CLOCK at the secure address
let embassy_peripherals = embassy_nrf::init(Default::default());
Expand Down

0 comments on commit 9ff51a1

Please sign in to comment.