你好,盖萨,
当程序-gt;fx2-& gt;小EEPROM从CyPress USB控制中心中选择时,主机发出一个供应商命令0xA2,将内容加载到小EEPROM中,这应该是一个8字节可寻址的EEPROM。
因此,为了克服这个问题,主机不应该发布供应商命令0xA2,而是应该发出将要加载到大EEPROM中的供应商命令0xA9,即16字节可寻址EEPROM。
修改可以在CysB.DLL文件的一部分中的功能块私有BooLoad PROMIICE()中完成。此函数存在于CYFX2DEVICIC.CS文件中。
修改下面的语句
ReqEng==ISLARGEEPROM?(字节)0xa9:(字节)0xa2;
到
ReqCODE=0xA9;
执行此更改后,必须构建CysB.DLL文件。这可以与控制中心一起使用,以执行向16字节可寻址EEPROM的数据传输。
最好的问候,
斯里纳斯
以上来自于百度翻译
以下为原文
Hello Geetha,
When the Program -> FX2 -> Small EEPROM is chosen from the Cypress USB Control Center, the host issues a vendor command 0xA2 to load the contents into the small EEPROM, which should be a 8-byte addressable EEPROM.
So, to overcome this, instead of issuing the vendor command 0xA2, the host should issue the vendor command 0xA9 which would load the contents into the large EEPROM, i.e 16-byte addressable EEPROM.
The modification can be done in the function block
private bool LoadEpromIIC() which is part of the CyUSB.dll file. This function is present in the CyFX2Device.cs file.
Modify the below statement
ControlEndPt.ReqCode = isLargeEEprom ? (byte)0xA9 : (byte)0xA2;
to
ControlEndPt.ReqCode = 0xA9;
After performing this change, the CyUSB.dll file has to be built. This can be used along with the Control Center to perform data transfers to the 16-byte addressable EEPROM.
Best regards,
Srinath S
你好,盖萨,
当程序-gt;fx2-& gt;小EEPROM从CyPress USB控制中心中选择时,主机发出一个供应商命令0xA2,将内容加载到小EEPROM中,这应该是一个8字节可寻址的EEPROM。
因此,为了克服这个问题,主机不应该发布供应商命令0xA2,而是应该发出将要加载到大EEPROM中的供应商命令0xA9,即16字节可寻址EEPROM。
修改可以在CysB.DLL文件的一部分中的功能块私有BooLoad PROMIICE()中完成。此函数存在于CYFX2DEVICIC.CS文件中。
修改下面的语句
ReqEng==ISLARGEEPROM?(字节)0xa9:(字节)0xa2;
到
ReqCODE=0xA9;
执行此更改后,必须构建CysB.DLL文件。这可以与控制中心一起使用,以执行向16字节可寻址EEPROM的数据传输。
最好的问候,
斯里纳斯
以上来自于百度翻译
以下为原文
Hello Geetha,
When the Program -> FX2 -> Small EEPROM is chosen from the Cypress USB Control Center, the host issues a vendor command 0xA2 to load the contents into the small EEPROM, which should be a 8-byte addressable EEPROM.
So, to overcome this, instead of issuing the vendor command 0xA2, the host should issue the vendor command 0xA9 which would load the contents into the large EEPROM, i.e 16-byte addressable EEPROM.
The modification can be done in the function block
private bool LoadEpromIIC() which is part of the CyUSB.dll file. This function is present in the CyFX2Device.cs file.
Modify the below statement
ControlEndPt.ReqCode = isLargeEEprom ? (byte)0xA9 : (byte)0xA2;
to
ControlEndPt.ReqCode = 0xA9;
After performing this change, the CyUSB.dll file has to be built. This can be used along with the Control Center to perform data transfers to the 16-byte addressable EEPROM.
Best regards,
Srinath S
举报