UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
5,023 Views
Registered: ‎02-24-2014

SDK debugging with Petalinux core files

(Cross posting from Embedded Linux board. Hope that's ok.)

 

Hi all

 

Petalinux 2015.2

SDK 2015.2

 

I have a Petalinux application which generates a segfault while running on my custom Zynq target board. I can generate a core file using

ulimit -c unlimited

but can't see how to connect the SDK to it either remotely via TCF or after pulling it off the target. Usually there is a "C/C++ Postmortem Debugger" debug configuration option in Eclipse but it doesn't seem to be there in the SDK.

 

Any help would be appreciated.

 

Regards

Chris

 

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
5,017 Views
Registered: ‎08-01-2008

Re: SDK debugging with Petalinux core files

This can help if the file handle limit is set too low to launch the SDK

Are you getting error on Linux that I do not have enough file handles to open SDK
To increase this, you can use the UNIX command ulimit, for example, "ulimit -n 1024" or "ulimit -n unlimited"
Thanks and Regards
Balkrishan
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos
Moderator
Moderator
4,991 Views
Registered: ‎09-12-2007

Re: SDK debugging with Petalinux core files

Also, you could try change the opt setting from Os to O0.

Is the tcf agent enabled in the rootfs? If so, you can then follow the steps here
http://www.xilinx.com/video/soc/debug-linux-application-using-xilinx-sdk.html
0 Kudos