help BEGINNER
i have a .hex file for a micorcontroller and i want to turn it into the assambler code. do you know any application that can do this?
thanks!
This kind of tool is called "disassembler". Of course, it is dumb, and you might need to reconstruct data areas etc.
Which kind of microcontroller is your hexfile for?
This kind of tool is called "disassembler". Of course, it is dumb, and you might need to reconstruct data areas etc.
Which kind of microcontroller is your hexfile for?
There is no simple solution here. You can obviously use disassembler but it will be up to you how to interpret the file created by a disassembler.
Regards,
IanP
How do you mean?
It is full with sources.
All you need to start is d52.exe (or the d52 elf, it you do Linux), but have a look also at the example (test.ctl and test.hex).
What, if a piece of software today does not have xxxMB it's suspiciously small?
The windows GUI is kind of experimental, I don't use it.
For PIC's, just open MPLAB, click File.. Import and import the hex. Then click View. Program memory. You will see the disassembled code.
Right click on the tabs at the top and uncheck them all, except "Disassembly".
Select the first line of code, right-click on it and select "Output to file" to save the file as text. Then you open that file and edit it, but again, you need to figure out many unknowns.
For PIC's, just open MPLAB, click File.. Import and import the hex. Then click View. Program memory. You will see the disassembled code.
Right click on the tabs at the top and uncheck them all, except "Disassembly".
Select the first line of code, right-click on it and select "Output to file" to save the file as text. Then you open that file and edit it, but again, you need to figure out many unknowns.
i did as u told so but wen i try to import a hex file it gives a message like "The format of the file cannot be read or written because its extension was not recognised" though the file was compiled by tat MPLAB itself !
I do this every day and it works just fine. That is how you program a PIC when you are only given the .hex file, for example.
The fact that it did not work means that the file is corrupted or is the wrong file. Try creating a new one, with only a few instructions, assemble it and then import the hex file. It should work.