GPS NMEA sentence reader for Nucleo boards.

Dependencies:   mbed MODSERIAL

I had a lot of trouble getting other GPS examples to work. So I took Edoardo De Marchi's code from 2014 and hacked it until it was working on newer hardware.

Advice:

  • Start with confirming the module works in U-Center, and know the baud rate. Many older libraries assume 9600. Newer modules run at higher baud rates
  • Use a good terminal program and confirm you have human readable messages starting with "$GNGGA" or "$GPGSV" or similar.

Comments in code include links to NMEA sentence guides:

Most libraries do not include sentence filters for the types of sentences output by my M8N (and perhaps other modules as well)

Most older versions of the MODSERIAL library do not update properly to support STM32. I have found and included a version of the lib which will compile without errors. However, when using it in my code, the NMEA sentence gets corrupted somehow (for example showing some HUGE [6 digit] Satellite count, etc.

History

U-Blox-M8N GPS example for Nucleo-F401RE. Decodes additional NMEA sentences default tip

2019-07-04, by epremeaux [Thu, 04 Jul 2019 04:12:41 +0000] rev 2

U-Blox-M8N GPS example for Nucleo-F401RE. Decodes additional NMEA sentences


Added support for LPC4330

2014-08-22, by edodm85 [Fri, 22 Aug 2014 12:43:55 +0000] rev 1

Added support for LPC4330


First Version

2014-04-12, by edodm85 [Sat, 12 Apr 2014 11:53:35 +0000] rev 0

First Version