Skip to content

uf2conv.py : Segment address of hex format must be added to address of each records #54

Closed

Description

@elfmimi

Sorry, I should have provided more thorough description in the previous issue #53 .

addr = upper | (rec[1] << 8) | rec[2]

In this line above, it should be numerical addition.

so it must be like ...

addr = upper + ((rec[1] << 8) | rec[2] )

segment address must be multiplied by 16 and added to each subsequent data record address.

cf. https://en.wikipedia.org/wiki/Intel_HEX

Activity

  1. mmoskal commented on Jun 17, 2021

    @mmoskal
    Contributor

    Oh, I see, this is why the assertion was there :)

    Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions