FixedWire Posted November 4, 2021 Report Share Posted November 4, 2021 Hi everyone, After searching both forums I've not been able to source a way to easily create either file format. There are examples reading these files but not writing them. Segger simply gave the Python script below. Unfortunately we can't simply just install Python as this is in a regulated environment. So we're hoping for a native LabVIEW solution. Surely someone has done this before. It gets a bit complicated if we need to roll our own down to the bit level & then having to do a full validation on it. I'd really rather not go there. Thanks in advance! python script (the "intelhex" does the heavy lifting) from intelhex import IntelHex h = IntelHex(None) h[0x1000] = 0x12 h[0x1001] = 0x34 h[0x1002] = 0x56 h[0x1003] = 0x78 h.write_hex_file('patch.hex') Quote Link to comment
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.