Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
microbit-carlos opened this issue May 11, 2020 · 0 comments
Open
Labels
bug Something isn't working

Comments

@microbit-carlos
Copy link
Collaborator

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.

@microbit-carlos microbit-carlos added the bug Something isn't working label May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant