Problems accessing GPIO via cspddk lib

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problems accessing GPIO via cspddk lib

Jump to solution
908 Views
SteM
Contributor III

Hi there, iMX51 + WEC700.

I need to drive a GPIO pin up and down just for debug and i guess the simplest way is to use cspddk lib.

I added the include files and lib and when i compile the application i have no errors.

When I run the application i receive a message: 'Impossible to import CSPDDK.dll' and in the debug log i see:

PID:00EA0122 TID:0C4F005A ERROR: c:\wince700\platform\common\src\soc\common_fsl_v3\cspddk\ddk_sdmav2\ddk_sdmav2.c line 1188:

PID:00EA0122 TID:0C4F005A MmMapIoSpace failed!

PID:00EA0122 TID:0C4F005A ERROR: c:\wince700\platform\common\src\soc\mx51_fsl_v3\cspddk\dll\cspddk.c line 107:

PID:00EA0122 TID:0C4F005A SdmaAlloc failed!

Any idea?

Labels (2)
0 Kudos
1 Solution
594 Views
king_jin
NXP Employee
NXP Employee

Cspddk.dll is kernel dll, user mode application has no permission to access its APIs.

You can write a new driver which can be used to communicate with application by device ioctl, then let this driver call the APIs in cspddk.dll.

View solution in original post

0 Kudos
1 Reply
595 Views
king_jin
NXP Employee
NXP Employee

Cspddk.dll is kernel dll, user mode application has no permission to access its APIs.

You can write a new driver which can be used to communicate with application by device ioctl, then let this driver call the APIs in cspddk.dll.

0 Kudos