Skip to content

Commit 5233608

Browse files
Merge #387
387: Fixed nvms erase problem for nrf91 & nrf53 r=jamesmunns a=diondokter A byte offset was given where a word offset was required (factor 4 difference) Co-authored-by: Dion Dokter <[email protected]>
2 parents 54c6586 + 424daf5 commit 5233608

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Unreleased
44

5-
(no changes)
5+
- Fixed the nvmc erase procedure on nRF91 & nRF53 ([#387])
66

77
## [0.15.0]
88

nrf-hal-common/src/nvmc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ where
8787
#[cfg(any(feature = "9160", feature = "5340-app"))]
8888
#[inline]
8989
fn erase_page(&mut self, page_offset: usize) {
90-
self.direct_write_word(page_offset * PAGE_SIZE, 0xffffffff);
90+
self.direct_write_word(page_offset * PAGE_SIZE / WORD_SIZE, 0xffffffff);
9191
self.wait_ready();
9292
}
9393

0 commit comments

Comments
 (0)