Problem KSDK and Platform_Lib

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

Problem KSDK and Platform_Lib

ソリューションへジャンプ
823件の閲覧回数
juanruiz
Contributor II

Hello everyone,

 

I have a problem trying to make the platform_lib work. I am working on a project on which I need to use FreeRTOS and LPUART at the same time. I added the platform_lib and made the LPUART work perfectly, but the FreeRTOS didn't start properly. Then I changed to the platform_freertos_lib and the FreeRTOS worked perfectly, but the LPUART stopped sending messages. Everytime I add both of the libs, only the first one is taken into account. What am I doing wrong? .

 

Thanks in advance for your help. You guys are an amazing community.

ラベル(1)
0 件の賞賛
返信
1 解決策
684件の閲覧回数
juanruiz
Contributor II

Hi,

Moral of the story: When using RTOS, the interruptions are not activated until you start the OS.

Actually I tried this, but every time I tried, I was leaving the lpuart state variable inside main{} and it was not accessible to the tasks.

Anyway, I leaned a lot today.

Thanks, everybody.

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
685件の閲覧回数
juanruiz
Contributor II

Hi,

Moral of the story: When using RTOS, the interruptions are not activated until you start the OS.

Actually I tried this, but every time I tried, I was leaving the lpuart state variable inside main{} and it was not accessible to the tasks.

Anyway, I leaned a lot today.

Thanks, everybody.

0 件の賞賛
返信
682件の閲覧回数
juanruiz
Contributor II

Hi everyone. Quick update.

After tinkering a little with the code, I understood how the platform_lib works. Now I know that they should be the same, with the difference that each library is implemented with a different RTOS. I also tracked the problem down and found out that the reason why the UART is not sending any information is because the LPUART0_IRQHandler is not being called when I use the freertos platform library. Why could this be?

Thanks!

Best regards,

0 件の賞賛
返信
682件の閲覧回数
juanruiz
Contributor II

Hi Iva,

I forgot to give those details. I'm working with a FRDM_KL43Z and Kinetis SDK 1.3.

Thank you,

Juan

0 件の賞賛
返信
684件の閲覧回数
ivadorazinova
NXP Employee
NXP Employee

Hi Juan!

Please, what do you use for the board/MCU?

Thank you,

Best Regards,

Iva

0 件の賞賛
返信