public bool InitializeLibraries()
bool isInitialized = false;
hGPIO = gpio.Gpio_Init(null); ///< Initialize GPIO library.
if (hGPIO != null)
isInitialized = gpio.Gpio_Open(hGPIO); ///< **-- always return false**
pin = new gpio.uIo();
pin.type = (ushort)gpio.tIoType.ioColibriPin;
pin.number = 101;
gpio.Gpio_ConfigureAsGpio(hGPIO, pin); ///<configure provided sodimm pin as gpio
Please anyone can help ?
@Dhananjay If I am correct you are working on Colibri T20 module, and API’s you have implemented in your application is meant to work for Vybrid and iMX6 modules.
Please use correct library: Toradex CE Libraries and Code Samples | Toradex Developer Center
Note: Please do mention complete details about your platform( module, image, carrier board, application details) always whenever you write post new question on community so that anyone can answer your queries.
Its working after I have used the old dll ie “GpioLib.dll” in new Toradex sdk
I am trying to implement mentioned CODE, but getting message of " Unable to open GPIO, check if handle is valid". Can you please know me the exact problem?
static class Program
/// The main entry point for the application.
static void Main()