Part Number: MSP430F5342
I have a hex file which some someone made it few years ago and left the company. i want to see what it is doing so can you convert into a format which can easily be understandable.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: MSP430F5342
I have a hex file which some someone made it few years ago and left the company. i want to see what it is doing so can you convert into a format which can easily be understandable.
You can try IDA (https://hex-rays.com/ida-free) with MSP430 plugin (github.com/.../msp430emu).
Hello, chiming in as FAE, these links don't work for me or Khurram. Can you email me directly?
Hi Arash,
Sorry for late reply. The tools link zrno mentioned are shown below:
IDA Free: Disassembler & Decompiler at No Cost
GitHub - cseagle/msp430emu: An msp430 emulator plugin for Ida Pro
A big problem with a hex file is the lack of meta-data. Is it really code for a MSP430? Which device?
GNU bintools can disassemble a hex file. Sort of. For example:
$ /usr/ti/gcc/bin/msp430-elf-objdump -D -m msp430 -b ihex mpytest.hex
mpytest.hex: file format ihex
Disassembly of section .sec1:
00004400 <.sec1>:
4400: 01 00 mova @r0, r1 ;
4402: 01 00 mova @r0, r1 ;
4404: b2 40 80 5a mov #23168, &0x015c ;#0x5a80
4408: 5c 01
From this you can see another problem. The start of code isn't known so data gets treated as code.
Hi Arash,
As the .hex format file does not include any sample information, I do not think the tools has ability to distinguish meta-data and code. If you have any linker file of this program, I think the data could be recognized manually according to data address.
**Attention** This is a public forum