2025-06-18 11:03 PM
Hi,
I am trying to interface the SparkFun Neo M9N GPS module with an STM32F446 MCU using UART4, but I am unable to receive any GPS data. Interestingly, when I switch to USART1, the module works perfectly.
Could you please help me understand why UART4 is not functioning while USART1 works fine? Additionally, I could not find any reference code for interfacing the module using I2C. If any source or example is available, it would be greatly appreciated.
Thank you!
2025-06-25 1:34 AM - edited 2025-06-25 1:48 AM
Hello,
Hard to tell what the problem is based on the information you provided.
What board are you using? may be also you need to share your code/project.
Make sure you set the same configuration for UART4 as for USART1. Make sure you have used the correct Tx/Rx pins for UART4.
2025-06-25 1:40 AM
As @mƎALLEm said, you need to provide more detail - see: How to write your question to maximize your chances to find a solution.
Have you tested with a terminal that you can receive anything on UART4?
Have you confirmed that GPS data is actually reaching the UART4 Rx pin?
Some tips on debugging serial comms: