Why is my Zynq-7000 marine navigation system failing to initialize the NMEA 2000 GPS sensor?
I am developing a marine navigation system using a Zynq-7000 with Embedded Linux. The system should read data from an NMEA 2000 GPS sensor. I have confirmed the serial port connection and settings, checked the GPS sensor configuration and data format, made sure the NMEA 2000 library is correctly installed and configured.
But i am getting the error
Failed to initialize NMEA 2000
@Middleware & OSSolution:Jump to solution
Thanks for the idea, due to ur questions I was able to make research and get the list of possible errors, it turns out in my case it was necessary permissions not being granted to access serial device I used sudo and it worked just fine
7 Replies
So why is nmea2000_init returning a null?
Not sure exactly at first I thought I imputed a wrong path but I have doubled checked and the path is okay
Ok maybe I didn't ask the right way, what things would cause it to return null the exhaustive list?
@ZacckOsiemo Ummm, libraries failing due to internal errors, the serial port configuration not matching, issues with the usb to tge serial adapter, application not having necessary permissions to access serial device
yes so you need to list those errors and find out which one is occuring, if you habve this list you should not be stuck.
Solution
Thanks for the idea, due to ur questions I was able to make research and get the list of possible errors, it turns out in my case it was necessary permissions not being granted to access serial device I used sudo and it worked just fine
@Boss lady sometimes learning how to fish is better than getting the fish. I doubt those kinds of errors will be an issue for you much longer. Proud that you came to that conclusion.