Compute hex target locally for Jlink flashing/debugging

Hi there,

I am working with a Tracker SoM device and I would like to be able to quickly change its running hex file using a J-Link.

So far my methodology was to download the .bin file, upload it here: Hex File Generator | Tools | Particle, and then flash it to my device.

Would there be any way to locally compute the .hex image instead of using the website?

This would for sure be a gain of time.



If you’re comfortable with node.js, you can modify this script to generate the hex files offline. It’s how the hex images in the docs website tool are generated.

Alternatively you can use the Segger tools to flash the .bin file directly to the correct address. This makes sense if you only want to flash the user binary.