"Turn" Ti-davinci development series of six CCS5.2 debugging the Linux kernel

Source: Internet
Author: User

Go to Blog "Ti-davinci Development series of five CCS5.2 using Gdbserver remote Debugging Application"

When using CCS5.2 to debug the kernel remotely, you simply import the Linux kernel source code without compiling the kernel, and you won't be using a cross-compilation chain, and you don't need to use gdbserver, but you need the emulator xds560v2, so Windows and Linux can do it, but considering the windows CCS5.2 software is mature, the bug is few, and Windows is easy to operate, so this article recommends and mainly introduce the Windows edition CCS5.2 debugging kernel method. Before you introduce remote debugging Linux, it is important to ensure that the emulator xds560v2 is properly connected to the Development Board. Ensure that the imported kernel version is the same as the Linux system version running on the Development Board.

/************************************************************************************************************** ****************************/

Original works, when reproduced, please be sure to indicate the original source of the article in the form of hyperlinks: http://blog.csdn.net/gqb_driver/article/details/18238063, Author: gqb666
/************************************************************************************************************** ****************************/

I. Create Linux kernel engineering in CCS5.2

Click File->new->project, select Makefile Project with Existing Code, click Next.

Go to the Import Existing code page, click the Browse button to find the corresponding version of the Linux kernel source directory, toolchainfor Indexer settings default is <none>, the rest of the default, Then click Finish to proceed to the next step.

The project will be completed by entering the following page to create the project.

Finally, to prevent CCS5.2 from automatically building the kernel project before executing the debug, right-clicking on the Linux kernel project name, clicking on the next line of properties, and then removing the two checkboxes in the red box.

Second, the related Development Board for remote debugging kernel

Click Run->debug Config and select Code Compose Studio and create a new debugconfiguration configuration at Target Configuration column Select an existing profile for EVMDM3730.

Then go to the Program tab page, device select the Working emulator via the dropdown box Spectrum Digital xds560v2 STM usbemulator_0/cortex_a8_ The 0,project column selects the linux-03.00.01.06 project in this example from the workspace. And the program in the Vmlinux is generated in the linux-03.00.01.06 root directory (note that the size should be 40MB-80MB, not only a few m, a large containing debugging information and compression is not). Loading The options column tick load Sysbols only, then click the Apply button.

On the Target tab, you can specify an entry point in the Run options. Click Apply and Debug.

To start the debugging interface, such as the following similar to the previous error, click Cancel.

Then enter the kernel debug interface, the two buttons in the red box to switch in and out of debug mode.

Normal debugging of the Linux kernel interface

Next Blog "Ti-davinci Development series of the seven DVSDK-4.03 catalogue introduction."

"Turn" Ti-davinci development series of six CCS5.2 debugging the Linux kernel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.