Windows 10 - can't use GPIO sdk in UWP application

Marco
New Member Posts: 1 ✭
Hi
I'm trying to develop an UWP application to deploy on Win IoT but i'm finding some problems.
I've taken the SDK from the download section but the .dll library can't be referenced from visual studio 2017, I get:
I think this is caused by the compiled .dll file which is too old for an UWP application.
I've tryed to run the project founded at:https://drive.google.com/file/d/0B5yCbfbC75zDaXlDZWZueHZjWDQ/view
In this case an error window appears saying "Error opening library" and debugging the error is in the following call:
The error says:
I can't figure out how to solve this issue, I think i need a .dll compiled library which can be referenced in an UWP application.
Do something similar exists?
Otherwise how can I controll GPIO pins on the Up Board from a C# project for Windows 10?
Thanks
I'm trying to develop an UWP application to deploy on Win IoT but i'm finding some problems.
I've taken the SDK from the download section but the .dll library can't be referenced from visual studio 2017, I get:
"A reference to ..... \aaeonEAPI.dll could not be added. Please make sure that the file is accessible, and that is a valid assembly or COM component"
I think this is caused by the compiled .dll file which is too old for an UWP application.
I've tryed to run the project founded at:https://drive.google.com/file/d/0B5yCbfbC75zDaXlDZWZueHZjWDQ/view
In this case an error window appears saying "Error opening library" and debugging the error is in the following call:
EApiGPIOSetDirection(EAPI.EAPI_GPIO_GPIO_ID(3), 0xFFFFFFFF, EAPI.EAPI_GPIO_OUTPUT);
The error says:
A call to the PInvoke function UpBoardBlinky!UpBoardBlinky.Form1::EApiGPIOSetDirection has unbalanced the stack. This problem can be caused when the managed PInvoke signature doesn't match the unmanaged destination signature. Verify thath the calling convention and the signatures' PInvoke parameters match the unmanaged destination signature.
I can't figure out how to solve this issue, I think i need a .dll compiled library which can be referenced in an UWP application.
Do something similar exists?
Otherwise how can I controll GPIO pins on the Up Board from a C# project for Windows 10?
Thanks
Comments
-
Same problem here... AEEON/UP-Board can you give us a C# DLL of DIO?
Categories
- All Categories
- 105 Announcements & News
- 54 Product News - New Product/Product Change Notice/ End-of-life
- 186 Welcome Developers!
- 55 Unboxing & Project Sharing
- 50 Tech Updates
- 693 UP Products
- 11 UP 7000
- 1 UP Squared i12
- 10 UP Xtreme i12
- 11 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 19 UP Squared V2
- 59 UP 4000
- 24 UP Xtreme i11
- 35 UP Squared 6000
- 60 UP Squared Pro
- 143 UP Xtreme
- 837 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 222 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 216 Starter Kits & Peripheral