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

boards/common/qn908x: Compute the image checksum #15546

Merged
merged 1 commit into from Dec 3, 2020

Commits on Dec 3, 2020

  1. boards/common/qn908x: Compute the image checksum

    QN908X CPUs require the image to have a valid checksum. The checksum is
    a simple addition of the first 7 uint32_t values stored in the 8th
    position of the image header. This position is a reseved entry of the
    Cortex-M Vector Table and its value depends on other fields that are
    computed at link time. Performing this checksum at link time seems
    hard to do, so instead this patch uses a python script to patch the
    checksum from the ELF file. This redefines the value of FLASHFILE
    to the new .elf file with the checksum fixed.
    
    With this patch, OpenOCD can program and verify QN908X images since
    now they have a valid checksum value.
    iosabi committed Dec 3, 2020
    Configuration menu
    Copy the full SHA
    3f600d8 View commit details
    Browse the repository at this point in the history