CodeWarrior Debugger Shell from Windows Cmd Prompt

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

CodeWarrior Debugger Shell from Windows Cmd Prompt

Jump to solution
1,441 Views
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.

Tags (1)
0 Kudos
Reply
1 Solution
1,395 Views
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

 

View solution in original post

0 Kudos
Reply
2 Replies
1,396 Views
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 Kudos
Reply
1,323 Views
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 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1966907%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECodeWarrior%20Debugger%20Shell%20from%20Windows%20Cmd%20Prompt%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%3EI'm%20trying%20to%20run%20a%20script%20in%20CodeWarrior%20Debugger%20Shell%20from%20windows%20command%20window.%20What%20I've%20tried%20is%3B%3C%2FP%3E%3CP%3E%26gt%3B%20cwide.exe%20-data%20%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%3EThis%20works%20just%20fine.%20The%20problem%20is%20I%20have%20different%20scripts%20to%20run%20and%20everytime%20I%20want%20to%20run%20a%20different%20script%2C%20I%20have%20to%20close%20CodeWarrior%20which%20I%20dont%20want.%20Another%20problem%20is%20that%20I%20want%20to%20see%20the%20progress%20on%20the%20windows%20command%20window.%20For%20instance%2C%20in%20the%20script%20file%20I%20evaluate%20a%20variable%20such%20as%20%22evaluate%20s_sBITResults%22%20and%20Debugger%20Shell%20return%20a%20value.%20But%20I%20want%20to%20able%20to%20access%20these%20result%20through%20cmd%20window.%26nbsp%3B%3C%2FP%3E%3CP%3ETL%3BDR%3A%20Is%20there%20a%20way%20to%20run%20CodeWarror(10.6)%20Debugger%20Shell%20without%20starting%20CodeWarrior%20itself%3F%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1985416%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20CodeWarrior%20Debugger%20Shell%20from%20Windows%20Cmd%20Prompt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1985416%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHi%20Alice%2C%3CBR%20%2F%3EI%20followed%20the%20guide%20from%20the%20%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%20as%20you%20suggested%20(I%20use%20P%26amp%3BE%20probe)%2C%20and%20it%20worked%20just%20fine.%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1972086%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20CodeWarrior%20Debugger%20Shell%20from%20Windows%20Cmd%20Prompt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1972086%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F241481%22%20target%3D%22_blank%22%3E%40Moriquendi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EWhich%20debug%20probe%20did%20you%20use%3F%20For%20OpenOCD%2C%20J-Link%2C%20and%20P%26amp%3BE%20Multilink%2C%20please%20refer%20to%20the%20following%20resources.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fmcuoneclipse.com%2F2015%2F03%2F22%2Fopenocdcmsis-dap-debugging-with-eclipse-and-without-an-ide%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmcuoneclipse.com%2F2015%2F03%2F22%2Fopenocdcmsis-dap-debugging-with-eclipse-and-without-an-ide%2F%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%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%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ESince%20CW10.6%20is%20based%20on%20Eclipse%2C%20you%20can%20refer%20to%20the%20Eclipse%20documentation%20as%20well.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3EBR%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAlice%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E