How to debug running Linux applications on target board?

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

How to debug running Linux applications on target board?

Jump to solution
1,383 Views
datho
Contributor III

I'm currently trying to use CodeWarrior 10.0.6 to place Linux applications on the LS1021A-TWR through AppTRK. When I debug a Linux application downloaded onto the board there seems to be a program running on an emulator and the console output is appearing inside eclipse instead of the serial terminal. In order to debug a running elf executable I have to start the executable on the LS1021A-TWR and then launch an attach task in order to debug the program with serial terminal output.

 

Is there a way to make the downloadable task start debugging the elf file on the target hardware(LS1021A-TWR in my case) like an attach configuration? Or is the debugger window actually debugging the elf file on the target hardware? It doesn't appear that way because the program is outputting to the eclipse console instead of the serial terminal.

Labels (1)
0 Kudos
Reply
1 Solution
1,094 Views
addiyi
NXP Employee
NXP Employee

The linux application is running in target board only the serial output is redirect to eclipse. Please refer to LS1021A_TWR_README.txt for more information about CodeWarrior Debugger Console I/O.

Adrian

View solution in original post

3 Replies
1,095 Views
addiyi
NXP Employee
NXP Employee

The linux application is running in target board only the serial output is redirect to eclipse. Please refer to LS1021A_TWR_README.txt for more information about CodeWarrior Debugger Console I/O.

Adrian

1,094 Views
datho
Contributor III

Thanks for the information, however the Linux application project didn't generate a LS1021A_TWR_README.txt in CodeWarrior 10.0.6.

0 Kudos
Reply
1,094 Views
addiyi
NXP Employee
NXP Employee

True, but you can take it from a bareboard project.

Adrian

0 Kudos
Reply