阅读:2072回复:6
9052 Local Adress,我的电脑属性资源中有三个,我该用哪个呢?
资源如下:
内存范围DF000000-DF00007F 输入输出范围:B800-B87F B400-B403 B000-B0FF 内存范围DE800000-DE81FFFF 应用程式让我输入local address, 我应该使用哪个地址呢?好象哪个都不行,搞糊涂了, 我用过: 0xB800 0xB410 0xB810 ... 应用程式如下,总是提示write 错误. void TestDirectSlave( HANDLE hDevice ) { U8 Revision; U16 i; U32 ChipType; U32 LocalAddress; U32 BufferDest[0x1]; U32 BufferSrc[0x1]; IOP_SPACE IopSpace; RETURN_CODE rc; printf("n"); printf(" WARNING: There is no safeguard mechanism to protect against invalidn" " local bus addresses. Please be careful when selecting localn" " addresses to transfer data to/from. System crashes will resultn" " if an invalid address is accessed.n"); printf("nn"); printf("Please enter a valid local address --> "); scanf("%x", &LocalAddress); PlxChipTypeGet( hDevice, &ChipType, &Revision ); // Setup parameters for test IopSpace = 0; switch (ChipType) { case 0x9050: case 0x9052: IopSpace = IopSpace0; break; case 0x9030: case 0x9080: case 0x9054: IopSpace = IopSpace0; break; case 0x0480: IopSpace = IopSpace1; break; } // First test without remapping printf(" Without Remapping: Space %d, 32-bit, offset = 0n", IopSpace); printf(" Preparing buffers............ "); for (i=0; i < (sizeof(BufferSrc) >> 2); i++) BufferSrc = 0x55aaff00; memset( BufferDest, 0, sizeof(BufferDest) ); printf("Okn"); printf(" Writing Data to Local Bus.... "); rc = PlxBusIopWrite( hDevice, IopSpace, LocalAddress, FALSE, // No Re-map BufferSrc, sizeof(BufferSrc), BitSize32 ); if (rc != ApiSuccess) { printf("*ERROR* - Write failed, code = %dn", rc); return; } printf("Ok/n"); |
|
|
沙发#
发布于:2004-07-29 08:37
出错图片如下图:
|
|
|
板凳#
发布于:2004-07-29 10:21
Tom.cat大侠,
能否帮忙解释一下? 多谢了. |
|
|
地板#
发布于:2004-07-29 15:16
用户被禁言,该主题自动屏蔽! |
|
地下室#
发布于:2004-07-29 15:17
用户被禁言,该主题自动屏蔽! |
|
5楼#
发布于:2004-07-29 15:56
板子是买的,
plx9052的LD0-LD31是通过ic 74ls244,一个三态锁存器芯片输出的. 怎么能知道它的地址呢? |
|
|
6楼#
发布于:2004-07-30 08:44
用户被禁言,该主题自动屏蔽! |
|