Skip to content

UICR: End address might be misscalculated if start page is not 0 #24

Description

@microbit-carlos

microbit-fs/src/uicr.ts

Lines 200 to 208 in 9738a5b

return {
flashPageSize: pageSize,
runtimeStartPage: startPage,
runtimeStartAddress: startPage * pageSize,
runtimeEndUsed: pagesUsed,
runtimeEndAddress: pagesUsed * pageSize,
versionAddress,
version,
};

Will need to check that runtimeEndUsed represents numbers of pages used from the start page: https://microbit-micropython.readthedocs.io/en/latest/devguide/hexformat.html#uicr-format

Then update the code and add more tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions