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

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

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

跳至解决方案
1,046 次查看
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,030 次查看
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,031 次查看
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,020 次查看
rahme
Contributor II

Thank you for your reply.

In fact, this is what we end up using.

Have a nice day.

0 项奖励
回复