cancel
Showing results for 
Search instead for 
Did you mean: 

Debuging .bin file

machinist
Associate III
Posted on November 28, 2016 at 14:42

Hello,

I am using eclipse with a Nucleo F103 and OpenOCD (or alternativly TrueStudio) and would like to do the following. 

I have a .bin file without the sourcecode. Now I would like to step through the disassembly to see where it jumps to in the code. I am not reverse engineering. Its just two bootloaders and the actual code. I have the source to one Bootloader nut not the other. So I just want to see what addresses the combined code jumps through. I dont have any other options. I can only flash the first bootloader, then with that falsh the rest and read back the binary file. This read file I would like to step through. Is this possible?

#stm32 #eclipse #nucleo
1 REPLY 1
Posted on November 28, 2016 at 17:14

One can step arbitrary code in the disassembly view of Keil, I'd imagine other debuggers would support similar functionality. Uncheck ''run to main()'' type options, and start stepping in the Reset_Handler

It would probably be easier to do static analysis from a disassembly listing of the .BIN

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..