Hello Everyone How Are you. I am working with F9P RTK2 Board + STM32 Nucleo-L476rg board, I am trying to read UBX-NAV-PVT masgs with STM32 using UART2 pins, but i am not able to read it. I have already Successfully read the UBX-NAV-PVT Masg from GPS F9P using Arduino mega so there is no issue with the board and baud rate, Can you please guide me.
The default baud rate is 38400 baud, and you’d need to enable the UBX-NAV-PVT message using a UBX-CFG-MSG form.
uint8_t ubx_nav_pvt_enable[] = { 0xB5,0x62,0x06,0x01,0x03,0x00,0x01,0x07,0x01,0x13,0x51 };
HAL_UART_Transmit(hUART_GNSS, ubx_nav_pvt_enable, sizeof(ubx_nav_pvt_enable), HAL_MAX_DELAY);
USART2 PA2/PA3 is wired to both the Arduino D0/D1 pins and the ST-LINK’s VCP, you’d likely want to pick a different UART for GPS comms.
Perhaps PB6/PB7 or PA9/PA10 for USART1, PC4/PC5 or PC10/PC11 USART3, PA0/PA1 UART4, etc
https://www.st.com/resource/en/schematic_pack/mb1136-default-c05_schematic.pdf
1 Like