完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我使用的是CY7C64 713 FX1设备,其中我的对象(HEX)文件是由Keil UVIVE生成的,我正在适当地转换,并使用CySaleLGEPROM选项编程FX1引导EEPROM。这工作良好,FX1靴子和运作如预期。
在我的代码中有一个保留不变,具体分配在最后的代码空间的地址编码空间宣布(0x1FFF)对特定的项目的原因,我不能在这里透露。这是通过使用一个链接器命令行配置到正确的代码空间的地址,我检查了这个对象(HEX)文件输出。 当我创建的对象(IIC)使用hex2bix工具文件(hex2bix.exe C 0x41 -f 0xC2 -我- O output.iic输入。六)检查原始二进制output.iic文件,我可以看到我的绝对地址常数和相应的地址之前,它。 我已经下载output.iic文件使用cyconsole lgeeprom断EEPROM读回来使用EEPROM编程我可以看到我的绝对地址常数是附加到代码,因此它没有被放在正确的EEPROM地址。 没有人知道IIC文件格式是我想知道如果cyconsole lgeeprom下载工具的问题,这是正确的或。或者,我是否正确创建了IIC文件? 以上来自于百度翻译 以下为原文 I am using a Cy7C64713 FX1 device in which my object (HEX) file is being generated by the KEIL uVision, I am converting this appropriately and programming the FX1 boot EEPROM using the CyConsole LgEEPROM option. This works fine and the FX1 boots and operates as expected. In my code there is a reserved constant declared in the code space that is specifically allocated in the last code space address (0x1FFF) for specific project reasons that I cannot disclose here. This is done using a linker command line to allocate this to the correct code space address and I have checked this in the object (HEX) file output. When I create the object (IIC) file using the hex2bix tool (hex2bix.exe -c 0x41 -f 0xc2 -i -o OUTPUT.IIC INPUT.HEX) and inspect the raw binary OUTPUT.IIC file I can see my absolute address constant with the appropriate address prior to it . After I have download the OUTPUT.IIC file using the CyConsole LgEEPROM and disconnect the EEPROM and read it back using an EEPROM programmer I can see that my absolute address constant is just appended to the code therefore it has not been placed at the correct EEPROM address. Does anyone know what the IIC file format is as I wish to understand if this is correct or if the CyConsole LgEEPROM download tool is the issue. Alternatively am I creating the IIC file correctly? |
|
相关推荐
2个回答
|
|
你好,阿贾,
我也尝试了一些类似于你所做的事情。我也失败了,我也来到了这个职位。IIC文件的创建没有任何问题。IIC文件格式具有一些数据编码格式、WTH程序数据长度、起始地址和实际程序数据。当我们下载到EEPROM时,下载过程将复制具有该数据编码格式的IIC文件(最后EEPROM包含IIC文件的数据ID)。您的声明常量也复制到EEPROM,具有地址编码格式。所以你的常量不会复制到那个绝对地址。 但我可以用另一种方法来避免这个问题。我使用的是FX2设备。首先我下载vend_aux.hex发出verdor特定命令写入EEPROM,确切的位置,我的常量数据。而且效果很好。但缺点是我必须为此写一份申请书。赛普拉斯提供“适用于CYUSB。DLL和API函数写入USB端点。 但现在这个信息将不会帮助你因为这是四年前的问题。只是FIY。 当做, Vishwa Shanika。 以上来自于百度翻译 以下为原文 Hi AJAI, I also tried out something similar to you had done. And I also failed and I came to ypur this post as well. There is nothing wrong with IIC file creating. The IIC file format is having a some data encoding format, wth program data length, the start address and actual program data. When we are downloading to the EEPROM, download process will copy the IIC file with that data encoding format(finally eeprom contains data idential to the IIC file). Your declared constant also copied to the EEPROM with that address encoding format. So your constant will not copied into that absolute address. But I could avoid this problem by using another way. I'm using a FX2 device. First I downloaded vend_aux.hex and issued a verdor specific command to write to that exact EEPROM location, with my constant data. And it works fine. But drawback is I have to write an application for that. Cypress provides "CyUSB.dll" and with API function to write into USB endpoints. But now this information will not help you since this is 4 years back question.. Just FYI. Regards, Vishwa Shanika. |
|
|
|
你好,
在创建IIC文件的过程中没有任何错误。我不知道你是连接变量在项目。 当使用“cyconsole lgeeprom”它加载的vend_ax例子然后复制文件内容的IIC EEPROM。你要写的信息与你的变量前最后的记录。 “80 01 E6 00 00” 当做, Vikas。 以上来自于百度翻译 以下为原文 Hi , There is nothing wrong in the procedure of creating the iic file. I am not sure how you are linking the variable in the project. When using the "[size=11.1999998092651px]CyConsole LgEEPROM" it loads the vend_ax example and then copies the iic file contents to EEPROM. you have to write the information realted to your variable before the last record. "80 01 e6 00 00" Regards, Vikas. |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2069 浏览 1 评论
1826 浏览 1 评论
3639 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1760 浏览 6 评论
1510 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
508浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
358浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
410浏览 2评论
357浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
855浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-23 01:41 , Processed in 0.906984 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号