Fix warning in OpenOCD about LPC vector checksum

Emilio Moretti
1 min readMay 22, 2020

--

Warn : Verification will fail since checksum in image (0x1a00ab8d) to be written to flash is different from calculated vector checksum (0x53fc729a).
Warn : To remove this warning modify build tools on developer PC to inject correct LPC vector checksum.

The solution to the problem is quite easy, just modify your favorite build tool to run this script before you flash your file, and it will add the missing checksum so the warning disappears:

The code was translated from the C version you can get from this blogpost:

It works too, but it is a C program. I didn’t want to compile it nor push pre-compiled binaries to my repository. I wanted a plug and play solution that would ‘just work’ after pulling my repository on a different machine, so I rewrote it in Python.

Thanks for reading.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Emilio Moretti
Emilio Moretti

No responses yet

Write a response