CodeWarrior Debugger Shell from Windows Cmd Prompt

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

CodeWarrior Debugger Shell from Windows Cmd Prompt

跳至解决方案
1,647 次查看
Moriquendi
Contributor I

Hello,

I'm trying to run a script in CodeWarrior Debugger Shell from windows command window. What I've tried is;

> cwide.exe -data <path_to_workspace> -vmargsplus -Dcw.script=<path_to_script>

This works just fine. The problem is I have different scripts to run and everytime I want to run a different script, I have to close CodeWarrior which I dont want. Another problem is that I want to see the progress on the windows command window. For instance, in the script file I evaluate a variable such as "evaluate s_sBITResults" and Debugger Shell return a value. But I want to able to access these result through cmd window. 

TL;DR: Is there a way to run CodeWarror(10.6) Debugger Shell without starting CodeWarrior itself?

Thanks.

标记 (1)
0 项奖励
回复
1 解答
1,601 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Moriquendi 

Which debug probe did you use? For OpenOCD, J-Link, and P&E Multilink, please refer to the following resources.

https://mcuoneclipse.com/2015/03/22/openocdcmsis-dap-debugging-with-eclipse-and-without-an-ide/ 

https://mcuoneclipse.com/2015/03/25/command-line-programming-and-debugging-with-gdb/ 

Since CW10.6 is based on Eclipse, you can refer to the Eclipse documentation as well.

 

BR

Alice

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,602 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Moriquendi 

Which debug probe did you use? For OpenOCD, J-Link, and P&E Multilink, please refer to the following resources.

https://mcuoneclipse.com/2015/03/22/openocdcmsis-dap-debugging-with-eclipse-and-without-an-ide/ 

https://mcuoneclipse.com/2015/03/25/command-line-programming-and-debugging-with-gdb/ 

Since CW10.6 is based on Eclipse, you can refer to the Eclipse documentation as well.

 

BR

Alice

 

0 项奖励
回复
1,529 次查看
Moriquendi
Contributor I
Hi Alice,
I followed the guide from the https://mcuoneclipse.com/2015/03/25/command-line-programming-and-debugging-with-gdb/ as you suggested (I use P&E probe), and it worked just fine.

Thank you.

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1966907%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EWindows%20%E5%91%BD%E4%BB%A4%E6%8F%90%E7%A4%BA%E7%AC%A6%E4%B8%AD%E7%9A%84%20CodeWarrior%20%E8%B0%83%E8%AF%95%E5%99%A8%20Shell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1966907%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E5%B0%9D%E8%AF%95%E4%BB%8E%20Windows%20%E5%91%BD%E4%BB%A4%E7%AA%97%E5%8F%A3%E8%BF%90%E8%A1%8C%20CodeWarrior%20Debugger%20Shell%20%E4%B8%AD%E7%9A%84%E8%84%9A%E6%9C%AC%E3%80%82%E6%88%91%E5%B0%9D%E8%AF%95%E8%BF%87%E7%9A%84%E6%98%AF%EF%BC%9B%3C%2FP%3E%3CP%3E%26gt%3B%20cwide.exe%20-data%3CPATH_TO_WORKSPACE%3E%20-vmargsplus%20-Dcw.script%3D%3CPATH_TO_SCRIPT%3E%3C%2FPATH_TO_SCRIPT%3E%3C%2FPATH_TO_WORKSPACE%3E%3C%2FP%3E%3CP%3E%E8%BF%99%E5%BE%88%E5%A5%BD%E7%94%A8%E3%80%82%E9%97%AE%E9%A2%98%E6%98%AF%E6%88%91%E8%A6%81%E8%BF%90%E8%A1%8C%E4%B8%8D%E5%90%8C%E7%9A%84%E8%84%9A%E6%9C%AC%EF%BC%8C%E6%AF%8F%E6%AC%A1%E6%88%91%E6%83%B3%E8%BF%90%E8%A1%8C%E4%B8%8D%E5%90%8C%E7%9A%84%E8%84%9A%E6%9C%AC%E6%97%B6%EF%BC%8C%E6%88%91%E9%83%BD%E5%BF%85%E9%A1%BB%E5%85%B3%E9%97%AD%E6%88%91%E4%B8%8D%E6%83%B3%E8%A6%81%E7%9A%84%20CodeWarrior%E3%80%82%E5%8F%A6%E4%B8%80%E4%B8%AA%E9%97%AE%E9%A2%98%E6%98%AF%E6%88%91%E6%83%B3%E5%9C%A8%20Windows%20%E5%91%BD%E4%BB%A4%E7%AA%97%E5%8F%A3%E4%B8%8A%E6%9F%A5%E7%9C%8B%E8%BF%9B%E5%BA%A6%E3%80%82%E4%BE%8B%E5%A6%82%EF%BC%8C%E5%9C%A8%E8%84%9A%E6%9C%AC%E6%96%87%E4%BB%B6%E4%B8%AD%EF%BC%8C%E6%88%91%E8%AF%84%E4%BC%B0%E4%B8%80%E4%B8%AA%E5%8F%98%E9%87%8F%EF%BC%88%E4%BE%8B%E5%A6%82%E2%80%9Cevaluate%20s_sBITResults%E2%80%9D%EF%BC%89%EF%BC%8C%E7%84%B6%E5%90%8E%20Debugger%20Shell%20%E8%BF%94%E5%9B%9E%E4%B8%80%E4%B8%AA%E5%80%BC%E3%80%82%E4%BD%86%E6%88%91%E5%B8%8C%E6%9C%9B%E8%83%BD%E5%A4%9F%E9%80%9A%E8%BF%87%20cmd%20%E7%AA%97%E5%8F%A3%E8%AE%BF%E9%97%AE%E8%BF%99%E4%BA%9B%E7%BB%93%E6%9E%9C%E3%80%82%3C%2FP%3E%3CP%3ETL%3BDR%EF%BC%9A%E6%9C%89%E6%B2%A1%E6%9C%89%E5%8A%9E%E6%B3%95%E8%BF%90%E8%A1%8C%20CodeWarror(10.6)%E6%97%A0%E9%9C%80%E5%90%AF%E5%8A%A8%20CodeWarrior%20%E6%9C%AC%E8%BA%AB%E5%8D%B3%E5%8F%AF%E8%B0%83%E8%AF%95%20Shell%EF%BC%9F%3C%2FP%3E%3CP%3E%E8%B0%A2%E8%B0%A2%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1985416%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AWindows%20%E5%91%BD%E4%BB%A4%E6%8F%90%E7%A4%BA%E7%AC%A6%E4%B8%AD%E7%9A%84%20CodeWarrior%20%E8%B0%83%E8%AF%95%E5%99%A8%20Shell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1985416%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%97%A8%EF%BC%8C%E7%88%B1%E4%B8%BD%E4%B8%9D%EF%BC%8C%3CBR%20%2F%3E%E6%88%91%E6%8C%89%E7%85%A7%E6%82%A8%E7%9A%84%E5%BB%BA%E8%AE%AE%E9%81%B5%E5%BE%AA%E4%BA%86%3CA%20href%3D%22https%3A%2F%2Fmcuoneclipse.com%2F2015%2F03%2F25%2Fcommand-line-programming-and-debugging-with-gdb%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmcuoneclipse.com%2F2015%2F03%2F25%2Fcommand-line-programming-and-debugging-with-gdb%2F%3C%2FA%3E%E4%B8%8A%E7%9A%84%E6%8C%87%E5%8D%97%EF%BC%88%E6%88%91%E4%BD%BF%E7%94%A8%20P%26amp%3BE%20%E6%8E%A2%E9%92%88%EF%BC%89%EF%BC%8C%E5%B9%B6%E4%B8%94%E8%BF%90%E8%A1%8C%E8%89%AF%E5%A5%BD%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E8%B0%A2%E8%B0%A2%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E