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.
已解决! 转到解答。
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.
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.
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,