cancel
Showing results for 
Search instead for 
Did you mean: 

read gps data on stm32f103

Ivchenko Dmytro
Associate II
Posted on June 20, 2017 at 16:41

Hello dear ST programmer!

At least one month I`m trying to implement gps neo-6m module with my inemo-discovery board and I really get nothing, i have already implemented altimeter and it is works good now I need to read gps data. If someone can help me I will be pleased.

please help me.

6 REPLIES 6
Posted on June 20, 2017 at 17:13

The NEO-6M should output NMEA sentences at 9600 8N1 via it's TX pin into an STM32 USART RX pin.

>> I really get nothing

Not really very illuminating about what your code is doing, how and to what the connectivity is implemented.

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 20, 2017 at 20:48

Thanks for your prompt respond.

The main idea to implement program using ChibiOS for iNemo-Discovery board to read data from 

internal(thermometer, barometer and pressure sensor) and 

external(altimeter and GPS).

I have already implemented all of them except GPS, because I really have no idea how to do this using ChibiOS.

Self.Glenn
Associate III
Posted on June 21, 2017 at 03:51

Here's a demo project for the stm32f103.

If you use it with an rtos, you should probably send back data through a queue from the ISR to a receiving task.

The demo uses the nmea library that can be found here:

https://sourceforge.net/projects/nmea/

Demo project is here:

http://glennsprojects.com/download/zipfiles/gps_demo.zip

 

Hope this helps

Glenn

Posted on June 21, 2017 at 04:09

Have you ever read any data on your serial port? Even loopback?

Are you using C? Are you using stdio functions? Have you written the shim to connect the UART into the stdio functions?

Which compiler are you using? Which toolset?

So many questions.

Andrei from The Great White North

see 

http://embedded.fm/blog/2016/11/29/discovery-uarts-part-1

 
Posted on June 21, 2017 at 14:20

Thanks for your respond.

I will try to implement according to your demo project.

Thank you☺

Posted on June 21, 2017 at 14:43

Dear Mr Andrei,

Thanks for your respond.

Yes I have. I can read data(Temperature and Atmospheric pressure) on my serial port using terminal window.

I am using 'C', Chibi Studio 17 based on Eclipse 'Luna'

Code that I already implemented 

https://www.dropbox.com/sh/6zbr6wwdh45taie/AADxixZr70yRbrR2xVE5yEtna?dl=0

Thank you☺