UART Communication clock

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UART Communication clock

Jump to solution
230 Views
AchrafOukheir
Contributor III

Hello NXP Community,

I hope this message finds you well. I am currently working with the RD-HVBMSCTBUN board and I'm facing some difficulties with UART communication. As we are working on new projects from scratch, we have been referring to examples for guidance, but we haven't had much success so far.

After posting several questions and searching for information online, we were finally able to send data using UART and see the output on Putty. However, we now want to incorporate an operating system (FreeRTOS) into our project. Here's where we encountered a problem.

AchrafOukheir_0-1715179567207.png

 

The UART example provided uses a clock frequency of 48MHz and FIRC, but most FreeRTOS usecases and other resources suggest using a clock frequency of 160MHz and the PLL. So ,when we changed the clock to 160MHz, we started receiving bizarre characters instead of the expected data.

AchrafOukheir_1-1715179726476.png


I'm not sure why the UART + FreeRTOS is not working or how to correctly change the UART clock to support 160MHz. I have attempted it myself, but unfortunately, it didn't work (of course we use slow-clock as we are using LPUART1).

If anyone in the community has any insights into what might be going wrong or possible solutions to this issue, I would greatly appreciate your help. Your expertise and guidance would be invaluable to us in resolving this problem and continuing our project smoothly.

Thank you all in advance for your time and assistance.

Tags (3)
0 Kudos
1 Solution
141 Views
AchrafOukheir
Contributor III

My solutions is : Switch to the PLL clock, enable it in peripherals, and ensure that the PLL is locked. FreeRTOS relies on the PLL clock for proper operation.

AchrafOukheir_0-1715884915352.png

AchrafOukheir_1-1715884959877.pngAchrafOukheir_2-1715885047107.pngAchrafOukheir_3-1715885063487.png

 

 

 

View solution in original post

0 Kudos
2 Replies
173 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

does a demo example run properly if not using FreeRTOS, just after updating clock option?
Try to measure TXD data to see what bitrate is really set. Maybe you can try to measure AIPS_SLOW_CLK on CLKOUT0_RUN pin.

BR, Petr

0 Kudos
142 Views
AchrafOukheir
Contributor III

My solutions is : Switch to the PLL clock, enable it in peripherals, and ensure that the PLL is locked. FreeRTOS relies on the PLL clock for proper operation.

AchrafOukheir_0-1715884915352.png

AchrafOukheir_1-1715884959877.pngAchrafOukheir_2-1715885047107.pngAchrafOukheir_3-1715885063487.png

 

 

 

0 Kudos