Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ports/nrf/supervisor/internal_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ mp_uint_t supervisor_flash_write_blocks(const uint8_t *src, uint32_t lba, uint32
count = MIN(num_blocks, count);

if (page_addr != _flash_page_addr) {
nrf_nvm_safe_flash_page_write(_flash_page_addr, _flash_cache);
// Write out anything in cache before overwriting it.
supervisor_flash_flush();

_flash_page_addr = page_addr;

// Copy the current contents of the entire page into the cache.
Expand Down