[FRDM-KW38] Integrate time-based tasks with the BLE stack

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

[FRDM-KW38] Integrate time-based tasks with the BLE stack

ソリューションへジャンプ
1,777件の閲覧回数
rahme
Contributor II

Hi everyone,

I have a sequencer which will schedule tasks in time, e.g run task0 every 50ms, task1 every 70ms and so on.

Is it possible to achieve this along with the BLE task (main_task) from nxp ble demos without compromising the mcu going into deep sleep of course?

What is the best way to achieve this?

I tried to create a seperate task using the OSA_TaskCreate but it seems to break the BLE task.

Any help is appreciated. Many thanks.

0 件の賞賛
返信
1 解決策
1,761件の閲覧回数
nxf56274
NXP Employee
NXP Employee

Hi,

One easy way is to use timer to realize the function. Use TMR_StartLowPowerTimer to start the specified function. The ble demo has many tasks using the timer. If you want to use the os, you need to increase the os stack. The macro 'gTotalHeapSize_c' is defined in app_preinclude.h. But I recommend you use the timer.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,762件の閲覧回数
nxf56274
NXP Employee
NXP Employee

Hi,

One easy way is to use timer to realize the function. Use TMR_StartLowPowerTimer to start the specified function. The ble demo has many tasks using the timer. If you want to use the os, you need to increase the os stack. The macro 'gTotalHeapSize_c' is defined in app_preinclude.h. But I recommend you use the timer.

0 件の賞賛
返信
1,751件の閲覧回数
rahme
Contributor II

Thank you for your reply.

In fact, this is what we end up using.

Have a nice day.

0 件の賞賛
返信