Skip to content

Exclusive flash image access #36054

@eobalski

Description

@eobalski

An application may wish to implement few possibilities for DFU.
Access to image flash is not guarded in any way right now.
This may lead to a situation when, at the same time, more one
thread/process is writing new app image to flash partition.

Result of such situation is corrupted and denied image
by the bootloader (mcuboot for example).

Several dfu transports use different API for accessing image flash partition.

  • usb_dfu uses flash_img API
  • SMP uses flash_area API
    Didn't check for more.

Describe the solution you'd like

  • Exclusive flash image access across all possible DFU transport layers.
  • Flash image access unification

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions