This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Another reason for error 61: illegal hex module

Hi every body,

we use uVision 4 Version 4.54.0.0 to load an existing H86 binary file into an LPC1758 MCU. The issue we have encountered exists probably also for other architectures.
We did build a Hex-file modification tool that adds some information directly to the hex-file (e.g. the CRC of our flash area).

We had the following error in the Build Output window, when trying to load the firmware.

Load "C:\\firmware.hex"
*** error 61: illegal hex module

Actually, the file did contain lower case letters for some HEX-values e.g.
:101060000b0242f00444c3f88c41c3f8800191b1f3

These lower case letters are one reason for generating this error message. Changing them to capital letters
:101060000B0242F00444C3F88C41C3F8800191B1F3
let the error disappear and everything works fine.

Not a big issue, but the error message was not explicit enough.

I hope that my post will help people the encounter the same issue.

0