Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Nordic Nrf Rust Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-nordic-nrf-rust-knowledge-patch)
---
name: nordic-nrf-rust-knowledge-patch
description: Nordic nRF (Rust)
version: "0.20.0"
license: MIT
metadata:
author: Nevaberry
---
# Nordic nRF (Rust)
Use this skill when migrating Nordic nRF Rust HAL code, selecting trait
dependencies, configuring pins, or checking chip and peripheral support.
The references retain the version and device scope of each change.
## Reference index
| Reference | Topics |
| --- | --- |
| [Compatibility and targets](references/compatibility-and-targets.md) | Trait versions, optional formatting, USB, RTIC clocks, chip and core support, peripheral availability, compilation targets, PAC imports |
| [GPIO and buses](references/gpio-and-buses.md) | GPIO states and encodings, drive strength, SPI migration, PWM pin ownership, TWIM transfers and errors, TWIS/SPIS, USART pin recovery |
| [Peripherals and events](references/peripherals-and-events.md) | QDEC pin modes, comparator drivers, NVMC, sealed traits, PPI endpoints, RTC migration, internal ADC inputs |
| [IEEE 802.15.4 radio](references/ieee802154-radio.md) | Unsafe receive API, receive buffer destination, post-transmission state, formatting support |
## Breaking changes and migration
### PAC imports
The HAL removed the PAC re-export under `target` in 0.11.0.
Migrate imports that used that alias to the device PAC.
### GPIO startup state
Starting in 0.12.0, GPIOs begin in the `Disconnected` state.
They need an explicit mode conversion before use.
### SPI reads and clock pins
In 0.12.0, replace `Spi::read` with `transfer_split_uneven`.
From 0.16.0, both `Spi` and `Spim` accept an omitted SCK pin.
### PWM output pin ownership
From 0.13.0, pass the pin by value to `Pwm::set_output_pin`.
Use `swap_output_pin` or `clear_output_pin` to change the channel's
pin assignment later.
### TWIM transfer size and errors
Starting in 0.12.0, callers must split oversized transfers themselves.
From 0.15.1, TWIM reports overruns separately from target rejection.
Match `DataNack` for target rejection and handle overruns separately.
### RTC type migration
The RTC API drops typestate in 0.12.0.
Remove RTC state parameters from driver types when migrating code
from earlier releases.
### Sealed peripheral and PPI traits
The 0.12.0 HAL seals the peripheral `Instance` and PPI traits,
reserving implementations for HAL-provided types.
`ConfigurablePpi` extends `Ppi`.
### IEEE 802.15.4 receive and transmit
From 0.12.2, `ieee802154::Radio::start_recv` is unsafe.
`Radio::recv_timeout` writes incoming data into the caller's `packet` buffer.
From 0.14.0, a completed transmission leaves the radio disabled.
Start the next operation from that state.
### Compilation target restrictions
From 0.12.0:
- nRF52 and newer HALs reject Thumbv6-M.
- `nrf52810-hal` rejects hard-float targets.
- `nrf51-hal` rejects Thumbv7 and newer targets.
## Trait and dependency compatibility
### Embedded-hal traits
The 0.17.0 HAL adds `embedded-hal` 1.0 trait implementations and retains
0.2 implementations behind `embedded-hal-02`.
From 0.17.1, both `Twi` and `Twim` implement the 1.0
`embedded_hal::i2c::I2c` trait.
```toml
[dependencies]
nrf9160-hal = { version = "0.17.1", features = ["embedded-hal-02"] }
```
### UARTE serial traits
UARTE implements `embedded_hal::serial` starting in 0.14.0.
These are the legacy 0.2 serial traits, so enable `embedded-hal-02`
when relying on them with the 0.17 HAL.
### Embedded I/O
The 0.19.0 HAL uses `embedded-io` 0.7.1.
Use the 0.7 series in application dependencies that call the HAL
through those traits.
### USB dependency alignment
The 0.18.0 HAL updates `nrf-usbd` to 0.3.0.
Align direct `nrf-usbd` dependencies with that version when integrating
with the HAL.
## Peripheral and pin features
### RTIC monotonic clocks
Starting in 0.18.0, enable `rtic-monotonic` to use the RTC and TIMER
implementations of RTIC's `Monotonic` trait.
```toml
[dependencies]
nrf9160-hal = { version = "0.18", features = ["rtic-monotonic"] }
```
### QDEC input pin modes
In 0.20.0, QDEC is generic over the modes of its input pins.
Code that names the QDEC pin types explicitly can now express those modes
in the type signature.
### GPIO encodings and open-drain input
From 0.12.1, `Pin::psel_bits` and `Pin::from_psel_bits` convert between
HAL pins and peripheral pin-select encodings.
Use the `OpenDrainIO` pin state, added in 0.16.0, for an open-drain line
the firmware must also read.
GPIO output drive strength is configurable from 0.16.1.
### USART pin recovery
Starting in 0.12.0, `Usart::free()` returns the owned `Pins` along with
the peripheral, allowing the pins to be reused.
### NVMC and multiwrite flash
The NVMC driver is available from 0.13.0.
It implements `embedded_storage::nor_flash::MultiwriteNorFlash` on
supported nRF52 targets from 0.15.0 and on nRF9160 from 0.15.1.
### PPI groups and timers
In 0.12.0, PPI gains task endpoints for channel groups as well as
endpoints for timers, enabling hardware-triggered group control
and timer operations.
### Optional formatting
All chip HAL crates expose an optional `defmt` feature as of 0.19.0.
This release adds formatting support for types in `ieee802154`.
See the reference index for chip and core support, peripheral availability,
internal ADC inputs, and comparator and peripheral-mode drivers.