microbit-foundation / microbit-fs

A TypeScript library to manipulate the micro:bit MicroPython filesystem.
https://microbit-foundation.github.io/microbit-fs/
MIT License
12 stars 1 forks source link

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

Open microbit-carlos opened 4 years ago

microbit-carlos commented 4 years ago

https://github.com/microbit-foundation/microbit-fs/blob/9738a5bef6fe82c2635717cbfd7cf08c6014a109/src/uicr.ts#L200-L208

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.