Skip to main content
Visitor II
July 13, 2021
Question

STM32F4 - Radiolink SE100 GPS

  • July 13, 2021
  • 1 reply
  • 1308 views

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.

    This topic has been closed for replies.

    1 reply

    Super User
    July 15, 2021

    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.