Monday, December 11th 2017, 1:14am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

szoshi

Beginner

Date of registration: Nov 28th 2017

Posts: 5

1

Wednesday, December 6th 2017, 4:26pm

Debugging external binary

Hello,

I have had good success so far connecting a JLink to an ARM11 board and getting a flashing LED example to compile and execute on the board. I can also step through the program without any issues. I am now wondering if I can debug an externally built binary on my board. It is a small binary (less than 1k bytes) that I can flash to the RAM of the board. Since I don't have the source code though, I cannot step through the program. Is there a way where I can use the debugger to just step through the disassembly without the C or asm file? I am interested in seenig what values are saved in registers at different stages.

Thanks,
szoshi

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 430

2

Thursday, December 7th 2017, 9:44am

Hello szoshi,

Thank you for your inquiry.

Generally that is possible.
You can do this by simply pressing F11 (Step into) when reaching one of the library functions. Then you should land in the disassembly window where you can now step instruction wise through the disassembly code even while executing "unknown" library code.
Does this answer your question?

Best regards,
Nino