[Microbit-Python] Creating Hex File from Mu?

Jonathan Austin Jonathan.Austin at arm.com
Tue Nov 1 14:29:12 EDT 2016


On 1 Nov 2016, at 16:17, David Whale <david at thinkingbinaries.com<mailto:david at thinkingbinaries.com>> wrote:


Yes just leave micro bit unplugged and when it says 'find microbit' just navigate to the folder to save it. It will create a local micropython.hex that is the file that would have been flashed.


Admittedly this is a valid workaround, but I wonder if it might be more useful to have a “save as” style
dialogue where you can choose ‘hex’ or ‘python’ ? The nice thing about saving hex is that you know that file
will work - I recently had to go and fetch an older version of Mu in order to build a python file that had
previously built but was now running out of memory.

Jonny

David

On 1 Nov 2016 3:46 pm, "Nevil Hunt" <nevil.hunt at hotmail.co.uk<mailto:nevil.hunt at hotmail.co.uk>> wrote:

Does anyone know if there is a way to generate a Hex file from Mu, rather than just downloading it directly?


The reason why I'm asking is that once I've finished a program I like to keep the Hex file so I can quickly reload it without access to Mu.

I've been doing this by developing in Mu but once complete copying-and-pasting into the Web Python Editor to generate the final Hex.

I've now just started using the Radio module and the Web tool doesn't yet support Radio!


Alternatively is there a way to read the Hex file off a micro:bit? Then I could program using Mu and save the final Hex file by reading it back from the micro:bit.



Cheers,


Nevil

_______________________________________________
Microbit mailing list
Microbit at python.org<mailto:Microbit at python.org>
https://mail.python.org/mailman/listinfo/microbit

_______________________________________________
Microbit mailing list
Microbit at python.org<mailto:Microbit at python.org>
https://mail.python.org/mailman/listinfo/microbit

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/microbit/attachments/20161101/d69e07c9/attachment-0001.html>


More information about the Microbit mailing list