Skip to content

[Bug]: pyOCD fails to load flash algorithm with missing RW section #662

@TeoMahnic

Description

@TeoMahnic

Description

A critical error is raised when pyOCD tries to load a flash algorithm without a RW section.

C Error: 'MemoryRange' object has no attribute 'data' [__main__]

Steps to Reproduce

  1. Select a device that uses a flash algorithm without a RW section.
  2. Run pyOCD load command for selected target.
  3. Observe that a critical error is raised.

Expected Behavior

pyOCD should tolerate missing flash-algorithm sections. An absent section should be excluded from processing, and no critical error should be raised.

Additional Information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpyOCDChange is required in shipped pyOCD variant

Type

Projects

Status

In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions