Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: visne on April 28, 2022, 10:11:47 AM

Title: Want to use various peripherals of A20-OLinuXino-LIME2 board
Post by: visne on April 28, 2022, 10:11:47 AM
Hello all,

I am having A20-OLinuXino-LIME2-UM board. I want to use various peripherals/functions like I2C, SPI, UART1/2/3 and ADC. I read the user manual but I couldn't get enough information. Is this functions/peripherals accessible through GPIOs? If "YES", then please guide.

Thank you.
Regards,
Vis Ne   
Title: Re: Want to use various peripherals of A20-OLinuXino-LIME2 board
Post by: LubOlimex on April 28, 2022, 01:54:55 PM
Yes. A20 chip allows for all you mentioned. Refer to the Olimage guide here:

https://github.com/OLIMEX/OLINUXINO/blob/master/DOCUMENTS/OLIMAGE/Olimage-guide.pdf

Run command olinuxino-olverlay to explore what is available. Check at the bottom of the document for more information about how to use GPIO, SPI, I2C, etc.
Title: Re: Want to use various peripherals of A20-OLinuXino-LIME2 board
Post by: visne on April 29, 2022, 08:24:54 AM
Thank you for your reply.

In A20-LIME2 board's user manual, in GPIO section no any enough information available regarding whether the PIN is multiplexed with another peripheral or function and if it is multiplexed then which function available on PIN is not mentioned.

Can you please tell the process of how to configure and select UART3 and SPI0 on board through GPIOs step by step?

Thanks & Regards,
Vis Ne
Title: Re: Want to use various peripherals of A20-OLinuXino-LIME2 board
Post by: LubOlimex on April 29, 2022, 02:27:54 PM
> In A20-LIME2 board's user manual, in GPIO section no any enough information available regarding whether the PIN is multiplexed with another peripheral or function and if it is multiplexed then which function available on PIN is not mentioned.

You should investigate the schematic of the board and track multiplexing. Even the PDF export is sufficient for this task.

> Can you please tell the process of how to configure and select UART3 and SPI0 on board through GPIOs step by step?

The general approach is already detailed in the Olimage guide. Basically just check if the pins are free in the schematic and then run olinuxino-overlay script.