Community
cancel
Showing results for 
Search instead for 
Did you mean: 
JGome26
New Contributor I
1,501 Views

Software Access to FPGA GPIO pins

Hello, I was wondering how exactly do you access the GPIO pins on the 80 pin I/O Expansion through software. I understand that you can access the expansion port via SPI 1 but I was wondering how do I access a specific pin. I would like to read the data the GPS is providing through the TX and RX pins which correspond to FPGA_GPIO 15 and 16. I could not find an example on how to access the FPGA pins on the wiki, only access to the processor and LED pins through simple commands. Is this possible?

0 Kudos
9 Replies
idata
Community Manager
255 Views

Hello JorgeG,

 

 

Thank you for your interest in the Intel Aero Compute Board.

 

 

We are currently researching your query and will get back to you as soon as possible.

 

 

Thank you very much in advance for your patience.

 

 

Best regards,

 

Casandra
idata
Community Manager
255 Views

Take a look at the sources for the spi_xfer tool :

https://github.com/intel-aero/sample-apps/blob/master/spidev-app/spi_xfer.c

You should be able to pull the relevant parts out. SPI, in the for the most part is just another serial port .

On the Wikki , it shows you how the Register Map is laid out:

https://github.com/intel-aero/meta-intel-aero/wiki/95-(References)-FPGA 95 (References) FPGA · intel-aero/meta-intel-aero Wiki · GitHub https://github.com/intel-aero/meta-intel-aero/wiki/95-(References)-FPGA https://github.com/intel-aero/meta-intel-aero/wiki/95-(References)-FPGA

idata
Community Manager
255 Views

Hello JorgeG,

 

 

 

Take a look at what the user above, irieblue, has recommended, which is a good option.

 

What I would like to ask is if you are trying to get the data being sent to the flight controller by the GPS module on the Aero RTF or if you are trying to connect a GPS module to the compute board?

 

If so, which one?

 

 

Best regards,

 

Casandra
JGome26
New Contributor I
255 Views

Thank you both for the information. What i am trying to do is get the information being sent from the GPS to the flight controller.

JGome26
New Contributor I
255 Views

Thank you for the information. I have used these APIs before. Dronekit does not give the raw data. It can give latitude and longitude but not the actual raw bytes from the GPS which is what I would like.

idata
Community Manager
255 Views

Hello JorgeG,

 

 

Currently, the FPGA is configured to route the GPS information to the Flight controller via UART3. You can re-program the FPGA to access the raw data. This may not make the GPS data available to the flight controller as this is something we have not tested on our side.

 

You can however, give it a try and share your results with the community.

 

 

Additional information can be found here:

 

https://github.com/intel-aero/meta-intel-aero/wiki/95-(References)-FPGA https://github.com/intel-aero/meta-intel-aero/wiki/95-(References)-FPGA

 

 

I hope this information proves useful.

 

 

Best regards,

 

Casandra
JGome26
New Contributor I
255 Views

Thank you for the information. I really appreciate it

SBijj
Beginner
255 Views

Hello @JGome26​ , I was attempting the same thing that you are. I am trying to access the gps data stream. I am simply trying via Ubuntu command line but am not sure which port the GPS is outputting to. I was wondering if you were able to find a solution for this? If so, Could you please post it here. Much appreciated.

Reply