fs/fcb: Replace flash_area_erase with flash_area_flatten
FCB depends on explicit erase characteristics of a device. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
This commit is contained in:
parent
9da26eda5e
commit
64ccfb0479
2 changed files with 7 additions and 2 deletions
|
@ -82,8 +82,7 @@ fcb_erase_sector(const struct fcb *fcb, const struct flash_sector *sector)
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = flash_area_erase(fcb->fap, sector->fs_off, sector->fs_size);
|
rc = flash_area_flatten(fcb->fap, sector->fs_off, sector->fs_size);
|
||||||
|
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,12 @@ tests:
|
||||||
tags: flash_circural_buffer
|
tags: flash_circural_buffer
|
||||||
integration_platforms:
|
integration_platforms:
|
||||||
- nrf52840dk/nrf52840
|
- nrf52840dk/nrf52840
|
||||||
|
filesystem.fcb.no_erase:
|
||||||
|
platform_allow:
|
||||||
|
- nrf54l15pdk/nrf54l15/cpuapp
|
||||||
|
filesystem.fcb.native_sim.no_erase:
|
||||||
|
extra_args: CONFIG_FLASH_SIMULATOR_EXPLICIT_ERASE=n
|
||||||
|
platform_allow: native_sim
|
||||||
filesystem.fcb.native_sim.fcb_0x00:
|
filesystem.fcb.native_sim.fcb_0x00:
|
||||||
extra_args: DTC_OVERLAY_FILE=boards/native_sim_ev_0x00.overlay
|
extra_args: DTC_OVERLAY_FILE=boards/native_sim_ev_0x00.overlay
|
||||||
platform_allow: native_sim
|
platform_allow: native_sim
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue