Skip to content

Conversation

@microbit-matt-hillsdon
Copy link
Contributor

@microbit-matt-hillsdon microbit-matt-hillsdon commented Jul 16, 2024

This also fixes a mistake where we padded with 0 not 0xff.

On the implementation but not the types I've left open the possibility of passing a MemoryMap so I can experiment with it as an option.

MemoryMap imports remain a bit of a disaster but one to investigate further another day.

For the Python Editor this will mean that we always return a hex from the file system and then parse it for the partial flashing case. But that seems a much more reasonable API and the conversion should be quick enough. If we care for perf then we can work towards using the MemoryMap built by microbit-fs directly. There's no reason to be going via padded bytes as that drops the UICR data which it would be better to flash.

On the implementation but not the types I've left open the possibility
of passing a MemoryMap so I can experiement with it as an option.

This means we have a hard dependency on the intel hex library but I
think we should either stick with that or have a slimline version.
Something is still awry here but I'm not sure what.
@microbit-matt-hillsdon microbit-matt-hillsdon merged commit 55b09c4 into main Jul 18, 2024
@microbit-matt-hillsdon microbit-matt-hillsdon deleted the flash-data branch July 18, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant