PebbleOS v4.47.0-1075-g013613c8a
Loading...
Searching...
No Matches
nRF RRAMC

Flash driver for the internal RRAM of the nRF54L, written through its controller and read at its CPU address. More...

Data Structures

struct  pbl_flash_nrf_rramc
 Internal RRAM. More...
 

Macros

#define PBL_FLASH_NRF_RRAMC_DEFINE(sym, _name, _base, _mem, _size)
 Define the internal RRAM.
 

Detailed Description

Flash driver for the internal RRAM of the nRF54L, written through its controller and read at its CPU address.

The RRAM writes any data over any data, see PBL_FLASH_NO_ERASE. The MPU keeps the image read-only, so data goes in partitions outside code. With the MPSL, each chunk is programmed in a timeslot of the radio scheduler: the CPU cannot read the RRAM while it programs, and the radio interrupts run from it.


Data Structure Documentation

◆ pbl_flash_nrf_rramc

struct pbl_flash_nrf_rramc

Internal RRAM.

Data Fields
uintptr_t base Controller register base address.
struct pbl_flash flash Flash.
uintptr_t mem CPU address of the RRAM.

Macro Definition Documentation

◆ PBL_FLASH_NRF_RRAMC_DEFINE

#define PBL_FLASH_NRF_RRAMC_DEFINE (   sym,
  _name,
  _base,
  _mem,
  _size 
)
Value:
static const struct pbl_flash_geometry sym##_geometry = { \
.size = (_size), \
.page_size = 512U, \
.write_size = 16U, \
.sector_size = PBL_KIB(64), \
.subsector_size = PBL_KIB(4), \
}; \
PBL_DEVICE_INSTANCE(sym, struct pbl_flash_nrf_rramc, struct pbl_flash, flash) { \
.flash = PBL_FLASH_INIT(sym, _name, nullptr, &pbl_flash_nrf_rramc_ops, &sym##_geometry, \
nullptr, nullptr), \
.base = (_base), .mem = (_mem), \
}
Internal RRAM.
Definition nrf_rramc.h:25
uint32_t sector_size
Large erase unit, in bytes.
Definition flash.h:100
uint32_t write_size
Unit the flash programs at once, in bytes, or 0 for single bytes.
Definition flash.h:96
uint32_t size
Size, in bytes.
Definition flash.h:92
uint32_t page_size
Program page size, in bytes.
Definition flash.h:94
uint32_t flags
Flags, PBL_FLASH_*.
Definition flash.h:98
Flash geometry.
Definition flash.h:90
A flash.
Definition flash.h:242
#define PBL_FLASH_STATE_DEFINE(sym)
Define the class state of flash sym, for the PBL_FLASH_*_DEFINE() macro of a driver.
Definition flash.h:286
#define PBL_FLASH_NO_ERASE
The flash writes any data over any data, and needs no erase.
Definition flash.h:87
#define PBL_FLASH_INIT(sym, _name, _parent, _ops, _geometry, _otp, _otp_layout)
Initializer for the struct pbl_flash of flash sym.
Definition flash.h:301
#define PBL_KIB(n)
Convert kibibytes to bytes.
Definition units.h:18

Define the internal RRAM.

Parameters
symSymbol of the flash.
_nameName.
_baseController register base address.
_memCPU address of the RRAM.
_sizeSize of the RRAM, in bytes.