Cypress技术william hill官网
直播中

王兵

7年用户 203经验值
私信 关注
[问答]

如何在Keil C环境下编译CY7C68013的大型固件代码?

亲爱的各位,
CY7C68013Runa固件可能大于8kb/16kb吗?如何在Keil C环境下编译CY7C68013的大型固件代码?
我想用CY7C68013的8051来控制CD和数据采集单元。由于LCD控制的大量功能,FixWudis的代码大小大于Keil编译器(UVISION4)允许的频带,这提示当我构建项目时,“程序大小:数据=132.6×DATA=4464代码=5063,目标未被创建”。
据我所知,在CY7C68013中只有8个KB码和数据RAM。CY7C68013Runa固件可能大于8kb/16kb吗?如何?如何配置KEIL项目?请。一步一步地给我一些指示。
谢谢!
PS:我的硬件工作有较小的固件,128 KB EEPROM 24LC128通过I2C与CY7C68013相连。
2012-0714011256PNG
14.4 K

以上来自于百度翻译


     以下为原文
  Dear all,
    Is that possible the CY7C68013 run a firmware larger than 8KB/16KB? How to compile large firmware code of the CY7C68013 under Keil C environment?
    I want to control a LCD and a data acquisition unit by the 8051 of a CY7C68013. Due to a mass of functions for the LCD controlling, the code size of the fireware is larger than the allowed band of the Keil compiler (uVision4), which prompt that "Program Size: data=132.6 xdata=4464 code=5063, Target not created" when I build the project.
    As I know, there is only 8 KB code and data RAM in the CY7C68013. Is that possible the CY7C68013 run a firmware larger than 8KB/16KB? And how? How to configure the Keil project? Pls. give me some instructions step by step.
    Thanks a lot!
    PS: My hardware works well with smaller firmware and a 128 KB EEPROM 24LC128 is connected with CY7C68013  through the I2C. The target setting of my Keil project is shown in the attached figure.


回帖(5)

h1654155275.5814

2019-4-30 14:44:15
FX2LP总共有16KB内存用于代码和数据。
请尝试更改您的设置,如附图所示。
当做,
西克里希纳。
KeILILSETIPS.JPG
45.3 K

以上来自于百度翻译


     以下为原文
   FX2LP has a total of 16KB memory for code and data.
    Please try to change your settings as shown in the attached figure.
    Regards,
    sai krishna.


举报

王兵

2019-4-30 14:56:05
谢谢你的回答。
我已经尽力根据您的指令解决这个问题,包括修改“BL51定位”设置,并通过将我的功能添加到一个示例性固件中,从“CyPress  USB  CY3684EZ EZ-UBSFX2LPYDVK  1固件”编译我的项目。但问题仍然存在。
附件是我的固件,它是在UVIEW 4开发的,通过将两个文件“LCDCONMANCE.C”和“52驱动程序C”添加到示例固件“BulkRooT”中。如果我们只减少代码的大小,例如,在“LCDYCMDWORD(UCHAR CMD)”中删除“EZUBSJORD(5)”,Itcan就不会被编译。
我真的需要这些代码,并希望丰富控制器的功能。你能告诉我怎么编译吗?
当做。
袁刚
BulkLoop2.Zip
128.4 K

以上来自于百度翻译


     以下为原文
  Thank Anand and sai krishna for your reply.
    I've try my best to solve the problem according to your instructions, including modifying the "BL51 Locate" settings and compiling my project through add my functions to a example firmware from "CypressUSBCY3684_EZ-USB_FX2LP_DVK1.0Firmware". But the problem is still there.
    Attached is my firmware which is developed under uVision 4 through adding two files "LCDConMain.c" and "52-Driver.c" to the example firmware "bulkloop".  It can not be complied if only we reduce the size of the code, for example, deleting "EZUSB_Delay(5);" in the function " LCD_CmdWrite(uchar cmd)".
    I really need these codes and hope to enrich the function of the controller. Can you tell me how to compile it?
    Regards.
    Gang Yuan


举报

h1654155275.5814

2019-4-30 15:12:43
嗨,刚元,
我已经看过你的计划了。但我没有找到主项目文件(带有.uv2扩展名)。
我在这里漏掉了什么东西。
当做,
西克里希纳。

以上来自于百度翻译


     以下为原文
   Hi Gang Yuan,
    I have looked at your project. But I did not find the main project file (with .Uv2 extension).
    Am I missing something here.
    Regards,
    sai krishna.
举报

王兵

2019-4-30 15:25:37
嗨,sai krishna,
很抱歉,上面的固件是在UVISION4下开发的。我想这就是为什么你找不到主项目文件的原因。
附件PLS。通过在示例固件“BulkRooT”中添加两个文件“52驱动程序C”和“LCDCONMANCE.C”,找到UVISION下开发的固件。
请。帮助我。谢谢。

以上来自于百度翻译


     以下为原文
  Hi, sai krishna,
    I am sorry that the above firmware is developed under uVision4. I guess that is the reason why you can't find the main project file.
    Attached pls. find the firmware developed under uVision2 through adding two files "52-Driver.c" and "LCDConMain.c" to the example firmware "bulkloop".  And the problem is the same as I described in the above.
    Pls. help me. Thanks.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分