Can't communicate properly with X-NUCLEO-GNSS1A1 Hi, as the title said, I am having the hard time communicating with X-NUCLEO-GNSS1A1The GNSS module is communicate via USART (can't communicate via I2C, but this is the other problem)the code is written as follow:void usart_setup(void)
{
// some setup .....
}
volatile char gnss[180];
void gnss(void* args __attribute__((unused)))
{
for(;;)
{
int i = 0;
for (char a = usart_recv_blocking(USART1); a != '\r' || i < 180; a = usart_recv_blocking(USART1), ++i)
{
gnss[i] = a;
}
}
}
void usart_status_updater(TimerHandle_t xTimer)
{
printf("%s\n\r", gnss);
}
int main(void)
{
usart_send_stat_timer = xTimerCreate("USART_TIM", STATUS_UPDATE_PRD, pdTRUE, (void *) 0, usart_status_updater);
xTaskCreate(gnss, "gnss", 1024, NULL, configMAX_PRIORITIES - 1, NULL);
xTimerStart(usart_send_stat_timer, 0);
vTaskStartScheduler();
}For some reason, I cannot use HAL/LL library, and I'm using opencm3, but I think this is not the reason, also, there is