-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we able to convert the hex file to C code for PIC 16F #3348
Comments
I don't see any images |
Okay. I will provide it. Can you please clarify whether you support decompilation of PIC 16F code using Cutter |
Once you have that done you should get better disassembly. Don't use the parsing/disassembly sidepanel within hexdump tab it doesn't do what you probably want. Use the disassembly tab instead. As for decompilation looks like currently the rizin ghidra plugin doesn't have the mapping between rizin and ghidra architectures. https://github.com/rizinorg/rz-ghidra/blob/733ad009bd603a9ea03d386d2781acff7a150ee2/src/ArchMap.cpp#L71 |
I have followed the above-mentioned steps and got a disassembly code and Hexdump code and the decompiler remains empty Could you please explain the steps to be followed to get the C code from the hex file |
Ghidra architecture mapping for PIC was added in rizinorg/rz-ghidra#356 |
You need to compile cutter from the dev sources since (as karliss mentioned) support of PIC on the ghidra decompiler was very recent. |
It is also possible to download the CI dev builds from https://github.com/rizinorg/cutter/actions for example https://github.com/rizinorg/cutter/actions/runs/12787453625 . Need to be logged into github for links to be visible. |
I dumped the hex file and tried to convert hex file to C code with PIC uc - PIC16F family.
By selecting the Pic controller, it shows invalid, and my graph and disassembly is not generated properly.
I have attached a image for your reference.
My doubt is whether the cutter will support PIC16F or not?
The text was updated successfully, but these errors were encountered: