Embedded Intel® Core™ Processors
Communicate Intel® Core™ Hardware, Software, Firmware, Graphics Concerns
1162 Discussions

error ERROR_INVALID_PARAMETER when using DeviceIoControL


I am working now to develop a driver to access GPIO of EG20T chipset

I can open the device for,returning a positive value of openness: typedef struct tagGPIO_Device{HANDLE hGPIODevice; ioh_gpio_reqt gpio_reqt;} GPIO_Device; device->hGPIODevice = CreateFileA(path,GENERIC_WRITE |GENERIC_READ,0,NULL,OPEN_EXISTING,0,NULL); , but when I call the DeviceIoControl, as below: mode = INPUT_SEL; and port is do it for a while to get the right. BOOL GPIO_config(GPIO_Device *device,DWORD port,DWORD mode){ DWORD dwSize; BOOL status; device->gpio_reqt.port = port;device->gpio_reqt.pins = 0xff; device->gpio_reqt.mode = mode; device->gpio_reqt.enable = 1; status = (DeviceIoControl(device->hGPIODevice,IOCTL_GPIO_INT_ENABLE,&(device->gpio_reqt),NULL,0,&dwSize, NULL));return status; } displays the following error: ERROR_INVALID_PARAMETER for GetLastError(). Thank you.
0 Kudos
1 Reply
Valued Contributor I


I want to make you aware of a special place to go with questions like yours. The Intel® e-Help desk is staffed by Intel representatives who support select Intel embedded platforms including Intel® Atom™ and associated chipsets, including EG20T.

Here is the link to post your question in e-Help:

/community/en/intel_e-help_desk/low_power_platforms http://embedded.communities.intel.com/community/en/intel_e-help_desk/low_power_platforms

To access e-Help, you need to be a Privileged member of the Intel® Embedded Community.

If you are not already a Privileged member, you can request an upgrade to your community account here:

https://edc.intel.com/My-Account.aspx https://edc.intel.com/My-Account.aspx

In addition to access to e-Help, Prvileged members may also access the confidential content within the Intel® Embedded Design Center, such as design documents, specifications, and training materials.

I hope this helps.


J. Felix McNulty

Community Moderator (Intel contractor)

0 Kudos