Exit Shell from program

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

Exit Shell from program

873 Views
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 Kudos
Reply
1 Reply

718 Views
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 Kudos
Reply