How to debug running Linux applications on target board?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to debug running Linux applications on target board?

跳至解决方案
1,382 次查看
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.

标签 (1)
0 项奖励
回复
1 解答
1,093 次查看
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

在原帖中查看解决方案

3 回复数
1,094 次查看
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,093 次查看
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 项奖励
回复
1,093 次查看
addiyi
NXP Employee
NXP Employee

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

Adrian

0 项奖励
回复