Is it possible to modify some constant values in .hex file directly for firmware programming without recompiling the codes?

Hello All,

Currently we have a nRF52832 firmware .hex file for mass production.

And we use "nrf connect - programmer" to firmware programming without any problem.

We have a constant datecode value in .hex like "YR2021-12", and we can find it in the .hex file like below:

:10B1B00000005952323032312D31322020203000FF

What i would do is to modify the line to: (2021->2022 & update checksum) and save to a updated .hex file.

:10B1B00000005952323032322D31322020203000FE

Then i flash the updated .hex file but find the nRF52832 always enter DFU mode.

If i erase and write back the old firmware, it can boot up and work normally.

So anyone has any idea on that? Or the way i modify is not acceptable?

Thanks a lot.

Parents Reply Children
No Data
Related