micro:bit universal hex
    Preparing search index...

    Function iHexToCustomFormatSection

    • Converts an Intel Hex string into a Hex string using custom records and aligning the content size to a 512-byte boundary.

      The output of this function is not a fully formed Universal Hex, but one part of a Universal Hex, ready to be merged by the calling code.

      More information on this "section" format: https://github.com/microbit-foundation/spec-universal-hex

      Parameters

      • iHexStr: string

        Intel Hex string to convert into the custom format with 512 byte blocks and the customer records.

      • boardId: number

      Returns string

      New Intel Hex string with the custom format.

      When the Board ID is not between 0 and 2^16.

      When there is an EoF record not at the end of the file.