Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
carlosperate opened this issue Aug 22, 2022 · 3 comments
Open

Comments

@carlosperate
Copy link
Contributor

carlosperate commented Aug 22, 2022

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
Copy link
Contributor Author

@carlosperate
Copy link
Contributor Author

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

@carlosperate
Copy link
Contributor Author

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

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

No branches or pull requests

1 participant