tewarid / tewarid.github.io

A Mutable Log
https://tewarid.github.io
MIT License
9 stars 3 forks source link

2013/08/01/calculate-intel-hex-file-checksum-using-windows-calculator #18

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Calculate Intel HEX file checksum using Windows Calculator | A Mutable Log

A Mutable Log : A Mutable Log

https://tewarid.github.io/2013/08/01/calculate-intel-hex-file-checksum-using-windows-calculator.html

brunomunarini commented 2 years ago

:020000041FFF

xnappo commented 2 years ago

Just in case someone needs it, in VBA:

Function IntelHexChecksum(MyData As String)
Dim checksum As Integer
    checksum = 0
    For a = 1 To Len(MyData) Step 2
       checksum = checksum + CDec("&H" & Mid(MyData, a, 2))
    Next
    checksum = ((checksum Xor 255) + 1) And 255
    IntelHexChecksum = Right(("00" & Hex(checksum)), 2)
End Function
ThirtySomething commented 3 months ago

The URL of the KEIL documentation has changed. Did you mean this page?

tewarid commented 3 months ago

The URL of the KEIL documentation has changed. Did you mean this page?

Thank you, for bringing this to my attention! The link you posted works, but will fix the post with link to a page that resembles what the original link pointed to.