ntoll / uflash

A module and command to easily flash Python onto the BBC's micro:bit device.
http://micropython.org/
MIT License
101 stars 27 forks source link

Added UICR check before embedding. #63

Open Dainerx opened 5 years ago

Dainerx commented 5 years ago

In #62 @carlosperate explained any build of micropython as for v1.0 should include UICR section at the end of the hex file. Yet some people are building from bbcmicrobit micropython repository master branch and UICR is not included in the generated hex.

Added few lines to implement @carlosperate suggestion.

Tested against three different hex files:

Seems to work.