This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Debugging on ARM Base FVP

Hello,

I would like to know how do I attach gdbserver to my ARM Base FVP for debugging. All tutorials online explain using DS-5. I would like to use gdb since I am more comfortable with it. I already enabled networking on my FVP.

Thanks for your help!

Best regards,

Mohannad Ismail

Parents
  • Hi Mohannad,

    DS-5 (and now Arm Development Studio) are the toolchains from Arm, hence my blog(s) on these products. However for this specific case of application debug, a standard gdb debug connection is used, and so it should work in the same way (though it is not something I personally have looked into). Is you set the IP address of the target in gdb as localhost, are you able to connect?

    Regards

    Ronan

Reply
  • Hi Mohannad,

    DS-5 (and now Arm Development Studio) are the toolchains from Arm, hence my blog(s) on these products. However for this specific case of application debug, a standard gdb debug connection is used, and so it should work in the same way (though it is not something I personally have looked into). Is you set the IP address of the target in gdb as localhost, are you able to connect?

    Regards

    Ronan

Children
  • Hello Ronan,

    I finally got it to work! It was a silly mistake from my end. Thanks to your blog, I noticed the bp.hostbridge.userNetPorts parameter in my script did not include an extra port for connecting the gdb server. It only had the ssh port. I am able to hook to it successfully now. I am so frustrated I never noticed this earlier! 

    Thank you very much for your help!

    Best regards,

    Mohannad Ismail

  • hello,

    I also use GDBRemoteConnection.so. When I connect gdbserver I set breakpoint but it can't stop it.

    cmd1: FVP_BaseR_AEMv8R -f cfg.txt -a startup_Cortex-R52.axf -D --plugin GDBRemoteConnection.so

    cmd2:arm-none-eabi-gdb -tui ~/eagle/test/startup_Cortex-R52.axf