Sorry, you need to enable JavaScript to visit this website.

Debugging a Linux Application on microZed using TCF

Unsolved
7 posts / 0 new
tduffy's picture
tduffy
Junior(0)
Debugging a Linux Application on microZed using TCF

Hello,

Has anyone gotten TCF working to debug a Linux application on the microZed? I am using the Xilinx OSL version that is available off of the microZed.org website ( http://microzed.org/sites/default/files/documentations/MicroZed_Linux_sd... ). It does ship with the gdbserver, however does not appear to have the tcf-agent application ( not surprising, since it appears that that archive is from December 2013, and Xilinx didn't fully embrace TCF until after that ).

I have come across this howto:

http://www.xilinx.com/support/documentation/sw_manuals/xilinx14_7/SDK_Do...

... which appears to be exactly what I want. However i do not have the tcf-agent application, thus SDK can not connect to anything.

I am using Vivado 2014.4.

Any insight is much appreciated.

Thanks,

-TD

zedhed's picture
zedhed
Moderator(25)
RE: Debugging a Linux Application on microZed using TCF

Hi Tim,

You are right, that MicroZed image is older and does not have tcf-agent running.

My recommendation is to use the 2014.4 Linux release from Xilinx:

http://www.wiki.xilinx.com/Zynq+2014.4+Release

That OSL archive contains a target for ZedBoard which can be modified for MicroZed by bringing your own hardware platform definition, FSBL, and bitstream. Then if you modify the devicetree to match MicroZed hardware you should be able to reuse the same rootfs and kernel.

I tried that 2014.4 OSL release on ZedBoard just now and I was able to confirm connection to the TCF agent from 2014.4 SDK by running the hello_linux template application.

The howto that you reference for 14.7 is pretty close to the steps needed to get this working. I set my ZedBoard to 192.168.2.10 and my PC to 192.168.2.100 and connected using the connection setting "TCP:192.168.2.10:1534" from the SDK application Debug Configuration window.

Regards,

-Kevin

tduffy's picture
tduffy
Junior(0)
Awesome.

Awesome! Thanks Kevin. A bit more work than I was thinking I was going to be getting into, but shouldn't be too bad.

The last time I built up a full systme was in 2013.3 ... any chance you could point me to the updated docs for the flow from Vivado -> SDK?

Thanks!

-TD

zedhed's picture
zedhed
Moderator(25)
RE: Debugging a Linux Application on microZed using TCF

Hi Tim,

You SHOULD be able to use your old FSBL and bistream and simply tie them to the U-boot included in that Xilinx OSL archive to create the new BOOT.BIN boot image file.

If you want to go all the way and build the new hardware platform, we have an updated version of the Zynq Hardware and Software SpeedWays in the training section of this site. Those trainings have hands-on lab documents which cover the entire 2014.4 design flow.

If you want something more brief, you can use the latest Xilinx Zynq Concepts, Tools, and Techniques document for reference but the latest version of that is Vivado 2014.2.

http://zedboard.org/support/design/1521/11

Regards,

-Kevin

tduffy's picture
tduffy
Junior(0)
Kevin,

Kevin,

This is great to hear. Could you help me find the updated 2014.4 version of the speedway I'm looking for? I only see speedways for 2013.4 and 2014.1.

Preferably I would like to build the system up myself so I know whats going on, but I suppose I could make some short-cuts to demonstrate POC.

Thanks,

-TD

tduffy's picture
tduffy
Junior(0)
Never mind, I believe I found

Never mind, I believe I found there here:

http://zedboard.org/course/developing-zynq%C2%AE-7000-all-programmable-s...

Is that correct?

Thanks,

-TD

zedhed's picture
zedhed
Moderator(25)
RE: Debugging a Linux Application on microZed using TCF

Hi Tim,

Yes those files on the page you linked to are the ones you want. There is a 2013.3 version and a 2014.4.1 version which is for the Vivado 2014.4 with the .1 update of the Vivado tools in place.

Regards,

-Kevin