KW45 FreeRTOS multiTask using serial manager to print out message

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

KW45 FreeRTOS multiTask using serial manager to print out message

Jump to solution
1,532 Views
Andy_Wang_JP
Contributor III

Hi NXP support team :

I'm trying to implement my application of CCC DK 3.0,and I start to practice by the project "kw45b41zevk_digital_key_device_freertos" of KW45 SDK. 

Currently I trying to create another Task , and I need it to print out some messages for simple debug. 

But in the sample project, the serial manager and shell component has been initialized by  "APP_InitServices()"  and "BluetoothLEHost_AppInit()"  in the start_task().

If my task want to print out the message through the serial manager and shell, do I need to initial both of them(using different handle name) as well when I create my task ?

Or any method you suggestion to implement this feature?

Thanks and waiting for your response.

Andy.

Labels (1)
0 Kudos
Reply
1 Solution
1,502 Views
nxf77486
NXP TechSupport
NXP TechSupport

Hello,

 

Thank you for contacting NXP support.

Once they are initialized is not necessary to re-initialize this in order to use the command line or shell messages.

I would highly recommend to give a look into the ble_shell freeRTOS example, that can be help full on how to send commands through shell and how they create the tasks for sending this messages.

View solution in original post

0 Kudos
Reply
2 Replies
1,503 Views
nxf77486
NXP TechSupport
NXP TechSupport

Hello,

 

Thank you for contacting NXP support.

Once they are initialized is not necessary to re-initialize this in order to use the command line or shell messages.

I would highly recommend to give a look into the ble_shell freeRTOS example, that can be help full on how to send commands through shell and how they create the tasks for sending this messages.

0 Kudos
Reply
1,431 Views
Andy_Wang_JP
Contributor III

Hi 

Thanks for the supporting, the example is helpful for me to understand the method of serial manager.

I can print out the message from 2nd task by shell_write().

Thanks a lot .

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1888559%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EKW45%20FreeRTOS%20multiTask%20using%20serial%20manager%20to%20print%20out%20message%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1888559%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20NXP%20support%20team%20%3A%3C%2FP%3E%3CP%3EI'm%20trying%20to%20implement%20my%20application%20of%20CCC%20DK%203.0%2Cand%20I%20start%20to%20practice%20by%20the%20project%20%22kw45b41zevk_digital_key_device_freertos%22%20of%20KW45%20SDK.%26nbsp%3B%3C%2FP%3E%3CP%3ECurrently%20I%20trying%20to%20create%20another%20Task%20%2C%20and%20I%20need%20it%20to%20print%20out%20some%20messages%20for%20simple%20debug.%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20in%20the%20sample%20project%2C%20the%20serial%20manager%20and%20shell%20component%20has%20been%20initialized%20by%26nbsp%3B%20%22APP_InitServices()%22%20%26nbsp%3Band%20%22BluetoothLEHost_AppInit()%22%26nbsp%3B%20in%20the%20start_task().%3C%2FP%3E%3CP%3EIf%20my%20task%20want%20to%20print%20out%20the%20message%20through%20the%20serial%20manager%20and%20shell%2C%20do%20I%20need%20to%20initial%20both%20of%20them(using%20different%20handle%20name)%20as%20well%20when%20I%20create%20my%20task%20%3F%3C%2FP%3E%3CP%3EOr%20any%20method%20you%20suggestion%20to%20implement%20this%20feature%3F%3C%2FP%3E%3CP%3EThanks%20and%20waiting%20for%20your%20response.%3C%2FP%3E%3CP%3EAndy.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1888559%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EKinetis%20K%20Series%20MCUs%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1893896%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20KW45%20FreeRTOS%20multiTask%20using%20serial%20manager%20to%20print%20out%20message%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1893896%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20supporting%2C%20the%20example%20is%20helpful%20for%20me%20to%20understand%20the%20method%20of%20serial%20manager.%3C%2FP%3E%3CP%3EI%20can%20print%20out%20the%20message%20from%202nd%20task%20by%20shell_write().%3C%2FP%3E%3CP%3EThanks%20a%20lot%20.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1888981%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20KW45%20FreeRTOS%20multiTask%20using%20serial%20manager%20to%20print%20out%20message%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1888981%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThank%20you%20for%20contacting%20NXP%20support.%3C%2FP%3E%0A%3CP%3EOnce%20they%20are%20initialized%20is%20not%20necessary%20to%20re-initialize%20this%20in%20order%20to%20use%20the%20command%20line%20or%20shell%20messages.%3C%2FP%3E%0A%3CP%3EI%20would%20highly%20recommend%20to%20give%20a%20look%20into%20the%20ble_shell%20freeRTOS%20example%2C%20that%20can%20be%20help%20full%20on%20how%20to%20send%20commands%20through%20shell%20and%20how%20they%20create%20the%20tasks%20for%20sending%20this%20messages.%3C%2FP%3E%3C%2FLINGO-BODY%3E