Skip to content

Conversation

@nvlsianpu
Copy link
Contributor

Enable buffered write for nRF54l RRAM flash driver by default. CONFIG_NRF_RRAM_WRITE_BUFFER_SIZE=1 means that write will be buffered by 16 B buffer (native RRAM write-bock-size).
This allows optimal life-endurance of RRAM memory.

For reference" DTS declares 16 write-block-size alredy.

@zephyrbot zephyrbot added area: Flash size: XS A PR changing only a single line of code labels Dec 17, 2024
@nvlsianpu nvlsianpu requested a review from kl-cruz December 17, 2024 15:24
@de-nordic
Copy link
Contributor

Why not go with 16 byte buffer directly?

@nvlsianpu
Copy link
Contributor Author

nvlsianpu commented Dec 18, 2024

Why not go with 16 byte buffer directly?

This enable 16 B buffer using HW capability given. RRAMC unit is equipped with 32 of 128-bit buffers for incoming data. So it is possible to use only multipliers of 16 B buffer size: 0 - no use, 1 -> 16 B, 2 -> 32 B, 3 -> 48 B and so one

Enable buffered write for nRF54l RRAM flash driver by default.
CONFIG_NRF_RRAM_WRITE_BUFFER_SIZE=1 means that write will be buffered
by 16 B buffer (native RRAM write-bock-size).
This allows optimal life-endurance of RRAM memory.

For reference" DTS declares 16 write-block-size already.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
@nvlsianpu nvlsianpu force-pushed the nrf54l/rram-buffered branch from f9b66bb to 3e56f7e Compare December 18, 2024 12:32
@nvlsianpu
Copy link
Contributor Author

@carlescufi We are using RRAM very suboptimal. Buffering should be used - It ensures maximum lifetime endurance of RRAM on RRAMC built-in behavior level.

@kartben kartben merged commit 2cea407 into zephyrproject-rtos:main Dec 19, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Drivers area: Flash platform: nRF Nordic nRFx size: XS A PR changing only a single line of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants