microbit-foundation / dev-docs

The content of the tech.microbit.org site
https://tech.microbit.org
Other
55 stars 70 forks source link

Hex format: MakeCode no longer stores metadata in micro:bit flash #381

Open carlosperate opened 2 years ago

carlosperate commented 2 years ago

https://tech.microbit.org/software/hex-format/#microsoft-makecode-editor

Hex files generated by the MakeCode Editor have embedded meta-data inside the .hex file. This is a JSON encoded blob with various data about the script, and also the source code program. This may be compressed, and it is stored inside the flash memory of the micro:bit (but only if space is available in the flash memory).

I believe MakeCode no longer attemps to save the metadata to the micro:bit flash as it did in earlier versions, and it goes straight into the "other data records" in the Universal Hex file.

carlosperate commented 2 years ago

We could also add a link to https://github.com/Microsoft/pxt/blob/v8.2.6/docs/source-embedding.md

carlosperate commented 2 years ago

The link to the Universal Hex spec could be change from the GitHub repo to https://tech.microbit.org/software/spec-universal-hex/.

carlosperate commented 2 years ago

Thanks to @maehw for noticing this and also mentioning the MakeCode source embedding info.