cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 - Radiolink SE100 GPS

JMohn.1
Associate

Hi. I am using STM32F407VGT6 this one and RadioLink SE100 GPS. I am trying to get $GNGGA data via USART and displaying it in putty terminal. I am able to get and print data. After 3-4 minutes gps sensor led is blinking but no data is printed on terminal.

1 REPLY 1
TDK
Guru

Using strdup causes memory to be allocated which must be freed using free, otherwise you have a memory leak and will run out of available memory. This is likely what is happening.

https://en.cppreference.com/w/c/experimental/dynamic/strdup

Using dynamic memory allocation on a microcontroller should be avoided if possible. You can do everything needed here with static buffer allocations.

If you feel a post has answered your question, please click "Accept as Solution".