Skip to content

Header size for imgtool sign in the documentation is set to 0x20000 #38

Closed
@schnoberts1

Description

@schnoberts1

Hi,

This seems quite large and also outside the range of the pack format in image.py. Result:

    self.add_header(enckey, protected_tlv_size)
  File "/home/andy/code/dbc/test/tools/provisioning/.venv/lib/python3.12/site-packages/imgtool/image.py", line 573, in add_header
    header = struct.pack(fmt,
             ^^^^^^^^^^^^^^^^
struct.error: 'H' format requires 0 <= number <= 65535

Using 0x2000 (assuming the doc had an extra zero) doesn't result in an error. I've not tested the upload yet.

Documentation: https://github.com/arduino/mcuboot-arduino-stm32h7?tab=readme-ov-file#manually-create-a-signed-and-encrypted-update-sketch

I am using the imagetool installed via pip. However. I note the same H format on the mcuboot scripts version.

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