Continue to Site

# Converting HEX file

Status
Not open for further replies.

#### Vikky

##### New Member
Hi all,

I got the hex file of a program developed for PIC12F675. I somehow what to reverse engineer it and to generate the code written in it.

#### ericgibbs

##### Well-Known Member
Hi all,

I got the hex file of a program developed for PIC12F675. I somehow what to reverse engineer it and to generate the code written in it.

#### Vikky

##### New Member
I tried, but here i am only able to view the opcode.

If i want to view the mnemonics or can anybody pass on me the opcode and mnemonics of this microcontroller?

#### Attachments

• 11.JPG
165 KB · Views: 381

#### colin55

##### Well-Known Member
Here is a program that will produce a .asm from a .hex for 12 bit 14 bit and 16 bit PIC chips

#### Attachments

248.1 KB · Views: 450

Thanks colin

#### ericgibbs

##### Well-Known Member
Hi all,

I got the hex file of a program developed for PIC12F675. I somehow what to reverse engineer it and to generate the code written in it.

hi,
I see that you have done it using a disasm prog.OK.

If you post your hex file I will show how to use WinPICPro.

#### Vikky

##### New Member
here is the hex file

#### Attachments

• PIC_program.txt
251.3 KB · Views: 277

#### ericgibbs

##### Well-Known Member
here is the hex file

hi,
Thanks for that.
The problem is its an INTEL hex [text] file.

#### Vikky

##### New Member
Actually the forum was not allowing to upload the .hex file . so i posted the txt file.

Here is the original file zipped.

#### Attachments

• PIC_program.zip
60.8 KB · Views: 189

#### ericgibbs

##### Well-Known Member
Actually the forum was not allowing to upload the .hex file . so i posted the txt file.

Here is the original file zipped.

him
I had guessed that, so I did change the extension from txt to hex...

Have you manged to disassemble the INTEL hex file using the Mikado.???

extract from you hex file prommer file.
Code:
3A 30 31 30 30 30 30 30 30 30 35 46 41 0D 0A 3A 30 31 30 30 30 31 30 30 32 38 44 36 0D 0A 3A 30 31 30 30 30 32 30 30 46 46 46 45 0D 0A 3A 30 31 30 30 30 33 30 30 33 46 42 44 0D 0A

#### Nigel Goodwin

##### Super Moderator
That file doesn't appear to be a correct MicroChip HEX file, it makes no sense when you load it (or even if you just look at it).

BTW, MPLAB disassembles as well, but not this non-functional file.

#### ericgibbs

##### Well-Known Member
That file doesn't appear to be a correct MicroChip HEX file, it makes no sense when you load it (or even if you just look at it).

BTW, MPLAB disassembles as well, but not this non-functional file.

I have come to the same conclusion.

Last edited:

#### Vikky

##### New Member
Have you manged to disassemble the INTEL hex file using the Mikado.???

I disassemble the code using the mikada. I can see the mnemonics their doing all the things like moving the values, starting timmer etc.

BTW, i am in process to understand the code written.

Status
Not open for further replies.

Replies
4
Views
1K
Replies
1
Views
816
Replies
3
Views
740
Replies
2
Views
1K
Replies
5
Views
1K