Exit Shell from program

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

Exit Shell from program

1,312 次查看
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 回复

1,157 次查看
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 项奖励
回复