Problem KSDK and Platform_Lib

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

Problem KSDK and Platform_Lib

跳至解决方案
1,035 次查看
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 解答
896 次查看
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 回复数
897 次查看
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 项奖励
回复
894 次查看
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 项奖励
回复
894 次查看
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 项奖励
回复
896 次查看
ivadorazinova
NXP Employee
NXP Employee

Hi Juan!

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

Thank you,

Best Regards,

Iva

0 项奖励
回复