Exit Shell from program

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Exit Shell from program

912件の閲覧回数
markdoxbeck
Contributor II

Is there a way to exit a Shell Task via a programming command?

I have a shell task, which is essentially just a while(1) loop with the shell command inside the loop.

I can enter the exit command from the keyboard, but I would like to cause the shell to exit and restart with a programming statement. Issuing Shell_exit causes the system to crash/lockup.

I am doing this because I'd like to change the commands available to the end user.

0 件の賞賛
返信
1 返信

757件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Mark:

I would suggest you try to terminate the shell task.

MQX RTOS frees task resources, when it terminates a task.

Regards

Daniel

0 件の賞賛
返信