01-04-2015 07:51 AM
Hi.
I'm using EDK tool in a Windows XP environment and an AVNET LXT150T Spartan-6 kit. I compiled a very basic LED set code like this:
int main()
{
XGpio led; // LED declaration
XGpio_Initialize(&led, XPAR_LEDS_DEVICE_ID);
XGpio_SetDataDirection(&led,0,0);
while(1)
{
XGpio_DiscreteWrite(&led,0,0x55);
}
return 0;
}
Compilation and FPGA programming was ok but when I tried to debug I got the error message: "Error while launching commad: gdb --version"
Does anyone have a hint?
Thanks so much
Joao
01-05-2015 01:15 AM
The Local C/C++ Application is a standard button in the Eclipse toolchain, which will call the machines local gdb which can be set up under Project -> Debug configurations. This would be for third party devices/debugging.
This would explain why the gdb version is being found as incorrect.
Launching on Hardware is a Xilinx Specific debug, which will use the powerpc-eabi-gdb or the mb-gdb. This option will call the correct debug with the correct options on the correct Xilinx hardware.
Regards
Sikta
01-05-2015 01:15 AM
The Local C/C++ Application is a standard button in the Eclipse toolchain, which will call the machines local gdb which can be set up under Project -> Debug configurations. This would be for third party devices/debugging.
This would explain why the gdb version is being found as incorrect.
Launching on Hardware is a Xilinx Specific debug, which will use the powerpc-eabi-gdb or the mb-gdb. This option will call the correct debug with the correct options on the correct Xilinx hardware.
Regards
Sikta
01-05-2015 08:51 AM
Thanks so much for the explanation. Yet could you, please, be some more specific? I'm using MicroBlase in EDK tool. What should I set in order to use mb-gdb as recommended by you?
Thanks and best regards
João
01-05-2015 04:26 PM
Hi,
Do you want to debug via GDB or can you use SDK to do this?
What do you see when you type the command mb-gdb -v in the command prompt?
--Hem
01-06-2015 04:21 AM
Can you try running it on Hardware as an option and see if the issue persists?
Regards
Sikta
10-02-2018 03:08 AM
If this error is cause by using the standard eclipse debugger, how can we fix it?
If we want to debug a local C++ application on our laptop, not on a target hardware, this is the only debugger that's available out of the box, no?