DPDK App build through Codewarrior IDE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DPDK App build through Codewarrior IDE

Jump to solution
6,693 Views
Sakthi
Contributor II

Hi 

I am working with LS1046ARDB Evaluation Board to develop a network based application. I have started my project with Flex-builder and Codewarrior. Through Flex-builder i have created a boot images and booted the board through SD card. For debugging the application, nxp recommended the Codewarrior IDE. I have installed the Codewarrior with service pack by referring the "Getting_Started_for_CW_ARMv8.pdf" & "Service_Pack_Updater_Quickstart.pdf". After i have started to build the application for LS1046ARDB board by referring the "ARMv8_Targeting_Manual.pdf". Now i want to build and debug the dpdk application through codewarrior. How to import the flex-builder sysroot to codewarrior to build the dpdk applications, i have tried this document sections "ARMv8_Targeting_Manual.pdf --> 8.2.2.3 Using sysroot", here it is mentioned for debug purpose only, able to build dpdk apps through this method? 

I have shared the images of codewarrior for your reference. I am planning to buy codewarrior license to build and debug the dpdk apps for my project.

PFA. 

0 Kudos
Reply
1 Solution
6,670 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please build your DPDK application in flex-bulder environment, then import the ELF file into CodeWarrior IDE to create a Linux application debug project.

Please refer to DPDK application examples/l2fwd, please create Makefile and meson.build for your own application.

I assume that you debug DPDK application l2fwd. After build DPDK with command "flex-builder -c dpdk -a arm64", you could get the ELF file in examples/l2fwd/build/l2fwd.

Please import l2fwd in CodeWarrior IDE from File->Import->C/C++->CodeWarrior Executable Importer to create a Linux Application debug project.

Then open panel from Run->Debug Configuration->C/C++ Remote Application->Debug_l2fwd->Main, please configuration "Connection" as "Remote Host", Click "Edit" to edit the connection to configure IP address and user name of the target board.

View solution in original post

5 Replies
6,671 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please build your DPDK application in flex-bulder environment, then import the ELF file into CodeWarrior IDE to create a Linux application debug project.

Please refer to DPDK application examples/l2fwd, please create Makefile and meson.build for your own application.

I assume that you debug DPDK application l2fwd. After build DPDK with command "flex-builder -c dpdk -a arm64", you could get the ELF file in examples/l2fwd/build/l2fwd.

Please import l2fwd in CodeWarrior IDE from File->Import->C/C++->CodeWarrior Executable Importer to create a Linux Application debug project.

Then open panel from Run->Debug Configuration->C/C++ Remote Application->Debug_l2fwd->Main, please configuration "Connection" as "Remote Host", Click "Edit" to edit the connection to configure IP address and user name of the target board.

6,648 Views
Sakthi
Contributor II

Hi,

Thank you for your response. I have two queries, can you please guide me.

Q1: I have build the l2fwd application in flex-build and import the elf file in codewarrior to create linux debug application is done. Remote debugging in Codewarrior IDE requires Codewarrior TAP(JTAG Debugger) or not? I have already installed the gdbserver package in LS1046ARDB board and debug the LS1046ARDB board through the gdb-multiarch in developer system by referring this nxp community page DPDK in code warrior IDE. By using the gdbserver on LS1046ARDB board how to debug the linux app from codewarrior IDE?

Q2: If i have updated the l2fwd code means, i will generate the new elf, then i need to create a new debug project or can i update this latest elf file in existing debug project?(If able to update in existing project means let me know how to do)

0 Kudos
Reply
6,606 Views
yipingwang
NXP TechSupport
NXP TechSupport

Q1, Ethernet connection is needed, JTAG Debugger is not required.

Please refer to section "8.2.2.2 Updating remote connection" in C:\Freescale\CW4NET_v2020.06\CW_ARMv8\ARMv8\Help\PDF\ARMv8_Targeting_Manual.pdf do configuration.

 

Q2, you need to import the new elf in CodeWarrior IDE to create a new CW project.

6,592 Views
Sakthi
Contributor II

Hi,

Thank you for your valuable response. I have few more queries.

Q1: Now i am working in l2fwd application, i was able to build the app through flex-builder. Then i import the .elf file in codewarrior to create debug project. I used the ethernet connection to debug my l2fwd app from codewarrior IDE, it's working fine. But i have a query about the codewarrior TAP and codewarrior IDE license. Now i am able to debug the userspace application without the codewarrior TAP support. For this user space application debug in codewarrior IDE through ethernet connection requires license of codewarrior IDE or not? 

Q2: By using the Codewarrior TAP able to do lot of features mentioned here CodeWarrior® TAP | NXP Semiconductors. Without this TAP, now i am able to debug the userspace application through ethernet connection with gdbserver installed in LS1046ARDB. Other features mentioned above are able to do without this TAP?

Thanks in advance.

0 Kudos
Reply
6,583 Views
yipingwang
NXP TechSupport
NXP TechSupport

Q1. CodeWarrior license is not required.

Q2. You could use CMSIS DAP to do CodeWarrior debugging instead of CodeWarrior TAP.