阅读:1521回复:14
问一个开发板上eeprom的问题
我想把编译好可以运行的hex程序转化成.iic文件下载到eeprom里面运行,现在已经把它转换成iic的格式了,然后我在control panal里面点eeprom将这个iic的文件下载到eeprom中,然后按reset键,但是程序运行不成功,还说发现了无法识别的usb设备。有谁实现过这个,帮我一下,是不是还需要什么额外的设置呢?谢谢了!!!!
|
|
沙发#
发布于:2004-11-25 10:26
我用的ezusb2131不是fx的,大家快来帮我啊,不然老板要发怒了,5555555
|
|
板凳#
发布于:2004-11-25 10:24
只有FX2系列的地一个字节是0xc2(下载程序到USB的RAM)0xc0(仅下载VID,PID,DID),其它的不是。
|
|
地板#
发布于:2004-11-25 10:24
我用的芯片是68013,所以是:
hex2bix -i -f 0xC2 -o filename.iic filename.hex. 你用的芯片我就不知道了! |
|
地下室#
发布于:2004-11-25 10:18
B2?你用的是什么芯片呀?是不是EZ―USB FX芯片呀?
而不是EZ―USB FX2呀? |
|
5楼#
发布于:2004-11-25 09:59
更不对了,而且首字节一定要使b2才可以阿,不用 -f的
|
|
6楼#
发布于:2004-11-25 09:50
你试一试这样的格式:
hex2bix -i -f 0xC2 -o filename.iic filename.hex. |
|
7楼#
发布于:2004-11-25 09:33
我转成的文件里面pid vid都是对的,就是后面的内容不对,地址和数据
|
|
8楼#
发布于:2004-11-25 09:31
在ep_pair的例子里面,cypress自己已经转换好了ep_pair.iic,我可以通过eeprom成功加载并运行这个iic文件,但是我自己用hex2bix命令转换ep_pair.hex成一个ep_pair11.iic就不行,我比较了一下两个iic文件,发现我转换的结果和他的不一样,我把第一行的内容给列出来,大家帮我看一下:
他的:B2 47 05 31 21 00 00 00-03 00 00 02 08 2A 00 03 我的:B2 47 05 31 21 00 00 00-03 00 00 02 47 72 00 03 当然后面的内容就都不一样了 这是为什么?好像是地址位出错了,是不是cypress自带的hex2bix文件有问题还是我使用的时候出了问题了?我的用法hex2bix -i -o ep_pair11.iic ep_pair.hex 谢谢大家!!!! |
|
9楼#
发布于:2004-11-25 09:11
再发一段英文资料给你:
Title: FX2 GPIF Doesn't Work from EEPROM Load Question: When an application boots from EEPROM, the FX2 GPIF outputs don't work and the debug display on the Xcelerator development board is incorrect. This works from the Keil debug, and works when downloaded from the control panel as a .hex file. It also causes Windows to look for a new driver and the debug LED flashes. Is this another linking issue? Response: Please review your project options and look at where xdata is linked. Since an application loaded from EEPROM can only be placed into on-chip memory space, suggested xdata locations are 0x1000 and 0x1800. Also, note that the correct syntax for building an EEPROM image using the hex2bix utility is: hex2bix -i -f 0xC2 -o filename.iic filename.hex. 我想你现在应该有一点思路了吧! 祝你好运,朋友! |
|
10楼#
发布于:2004-11-25 09:04
如果你的VID/PID变了的话,那么你的驱动里面的VID/PID也需要做同样的修改的!要不然就无法识别了!就是提示“发现未知设备”
给一段CYPRESS的帮助文件给你看: Running Cypress examples with my own VID/PID and custom driver: Question: I have a target board (my own VID and PID) with Cypress chip on it and have my own custom driver. I would like to be able to run your examples on my target board. What procedure do I need to follow. Answer: (1) In the ezusbwin2k.inf (C:\WINDOWS|INF typically) please add the following line to bind your device to our driver %USB\VID_****&PID_*****.DeviceDesc%=EZUSBDEV.Dev, > USB\VID_****&PID_**** after the line %USB\VID_0547&PID_1002.DeviceDesc%=EZUSB.Dev, USB\VID_0547&PID_1002 where ***** is your own VID and PID (2) Restart your computer (3) Connect the USB cable to your target board. (4) Start up the control panel. (5) Hit the "get Device" button (6) You should see your device information displayed on the control panel window. (7) You can now download any example provided in the CD shipped with the development kit. 如果你的VID/PID没有改变,而是和CYPRESS提供的驱动里面是一样的话,就不需要修改驱动了! |
|
11楼#
发布于:2004-11-25 08:37
上面的两位,谢谢你们了,我还是搞不定阿,shen_51000你能跟我说的详细一点吗?
“你的eeprom最大容量有多少?你的iic文件大于其容量的话会发生不识别的错误。” 我用的是24c64,iic文件的大小是8k,应该够了吧 另外你的iic文件里有变pid vid吗,这个是什么意思呢?我就是先生成一个hex文件,这个hex文件是可以运行的,然后用hex2bix转为iic,还需要经过其他的处理吗? 请看到我的回复立刻回答我好吗?我很急,再次感谢! |
|
12楼#
发布于:2004-11-24 22:49
我碰到过这个问题
你的eeprom最大容量有多少?你的iic文件大于其容量的话会发生不识别的错误。 另外你的iic文件里有变pid vid吗 你看看吧 |
|
|
13楼#
发布于:2004-11-24 15:46
可能和你板上工作电压在起始阶段不稳定有关。
|
|
14楼#
发布于:2004-11-23 10:03
为什么没有人理我?我用的是ezusb an2131qc,我严格按照文档里面的步骤作的,可就是不对阿,怎么看转换成的iic文件的内容阿?
|
|