Problems with GDB in EDK 9.2

I posted this on the Xilinx EDK forum without success so far.

I recently upgraded to EDK 9.2.02i and built up the TestApp_Peripheral executable for the Xilinx Spartan-3E Starter Board Rev D. I can run the exe OK but I am having problems getting GDB to talk to it. The reason for testing GDB on this app was to ensure that GDB was working properly before tackling another more complex application under development.

I have set the -g and -O0 option for both library generation as well as the TestApp_Peripheral application.

When I run GDB, GDB opens, then when I press the RUN icon, GDB appears to download the application as indicated by the progress bar at the bottom right of the screen but the target selection dialog box is again immediately again displayed. The RUN icon is grayed out.

In the xbash console window, the following pair of messages is shown

Info: Accepted a new GDB connection from 127.0.0.1 on port 2195 System Reset ........DONE

Info: Closed the GDB connection from 127.0.0.1 on port 2195 Error: Connection terminated by client.

Is there a problem with GDB with this EDK version or am I doing something wrong?

I have searched the Xilinx archives!

Any help appreciated,

John Robbins

Reply to
jcr_alr
Loading thread data ...

jcr snipped-for-privacy@xplornet.com schrieb:

I have a similar problem. I am using also EDK 9.2 (on Linux). I can connect to the embedded Microblaze with xmd (the basic commands work), but I can not download or debug anything with gdb.

-Markus

Reply to
Markus

Finally I think I might be on the right track with GDB.

I found that the following sequence works for me:

1) Download bit stream. 2) Run xmd and download .elf file but not run it. 3) Start GDB over JTAG but with the option Continue set. The default seems to be Run in which case GDB seems to issue the error messages that I saw before. 4) GDB should then run until the first breakpoint.

Maybe this is all obvious but it took me a long time to get it right.

John Robbins

Reply to
jcr_alr

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.