OSA with Baremetal in KSDK1.2 & KDS3.0

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

OSA with Baremetal in KSDK1.2 & KDS3.0

867件の閲覧回数
thiagopalmieri
Contributor III

Hello,

 

I am just wandering how OSA works without a RTOS underlayer?

 

Can I implement 2 or more "tasks" using OSA with a baremetal "OS" below it? How would this work?

 

I am asking this because I am trying to run two "tasks" implemented in OSA, but it seems that the second "task" is never executed.

 

Is this possible? If so, do you have some example ? I am using KL43Z if that matters........

 

Thanks

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

574件の閲覧回数
Carlos_Musich
NXP Employee
NXP Employee

Hi Thiago,

The OSA provides some services besides OS services. E.g. OSA_TimeDelay(). In this case OSA will call a different implementation of this function depending on the KSDK library that you are using/setting in menu Project > Properties > C/C++ Build > Settings > Cross ARM C Linker > Miscellaneous > Other objects. You can choose a library for baremetal project or for an Operating system form next path: C:\Freescale\KSDK_1.2.0\lib

If you are using the MQX library OSA_TimeDelay() will call _time_delay() function from MQX, but if you are ksdk_platform_lib and no OS it will call a function that is a simple empty loop.

But if you want to develop a multitasking operation then you need to use an OS because the OSA layer does not provide scheduler by itself.

Regards,

Carlos

0 件の賞賛
返信