Problems accessing GPIO via cspddk lib

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Problems accessing GPIO via cspddk lib

跳至解决方案
1,528 次查看
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?

标签 (2)
0 项奖励
回复
1 解答
1,214 次查看
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 项奖励
回复
1 回复
1,215 次查看
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 项奖励
回复