Run shell as a task using FreeRTOS (KSDK2.1 )

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

Run shell as a task using FreeRTOS (KSDK2.1 )

840 Views
priya_dwivedula
Contributor III

I am trying to run shell or debug console as a separate task from the rest of the tasks in the software and only execute it when needed (interrupt based). I see that shell in FreeRTOS uses UART blocking function calls to read and write. This is causing the entire application to wait for the blocking call to finish and sit in a while loop. If I change the shell task to lower priority, the task is never getting executed because of higher priority tasks in the software. I could do this easily using MQX in the older version of SDK but I am unable to figure out how this can be done in FreeRTOS. Please let me know what would be the best way to achieve this? An example would be helpful.

 

Thanks,

Priya

Labels (1)
0 Kudos
1 Reply

496 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Priya:

I would suggest you can set the send_data_cb_t and recv_data_t as interrupt driver function. Sorry I don't have such an example now.

Regards

Daniel

0 Kudos