完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我刚完成了我的固件测试。我一直在与FX2开发板合作。它运行良好,我甚至设法加载固件从大型EEPROM与24LC64。 现在,我试着在没有外部RAM的情况下运行相同的固件。DEV板需要跳线来控制对外部RAM、MM0和MM1的访问。所以,如果你把跳线放在那些头上,就不需要外部RAM就可以工作了。这不管用!不是从EEPROM或黄昏与柏树控制面板。 我的.HEX文件是10K(9679字节)。我的.IIC文件是4K(3159字节)。在UVISION2中,编译器告诉我:程序大小:数据=43.6×DATA=4635代码=3130。所以我不知道的是达达=43.6!它是什么?43.6什么?我从没见过6字节!所以,我认为我的代码和数据空间3130bytes 4635bytes,这给了我7765个字节,可装在8K FX2。但我不会在这个芯片非常熟悉,所以我想有一些块不可用或什么的。 我决定利用FX2LP芯片代替,所以我的代码可以很容易地适应在16K。我做了一个板与FX2LP芯片和存储器只是看它列举了正确,但没有! 我写EEPROM在FX2开发板相同的固件,然后把我的小测试板EEPROM与FX2LP芯片。我得到设备不承认。如果我跑小FX2LP板没有EEPROM我得到默认的柏树没有EEPROM器件。 现在我回到了uVision2和转变51设置在目标选择。它被设置在0x4000和XDATA代码0x5000作为默认,所以我猜这件事,所以我改变了它在0x0000和xdata来0x0400之上的0x03ca代码(3130字节的代码)。这不奏效,但它编译没有错误和它的作品在FX2开发板只是外部RAM的设置在毫米和MM1跳投。这意味着它仍然使用外部RAM。 我需要帮助,要么设置选项未uVision2如何运行我的固件没有外部RAM。 不胜感激! 谢谢你的时间。 加布里埃尔·卡米罗 以上来自于百度翻译 以下为原文 Hello, I've just finished testing my firmware as desired. I have been working with the FX2 dev board. It runs fine, I even managed to load the firmware from the large eeprom with a 24LC64. Now, I tried running the same firmware without the externa ram. The dev board has to jumpers that control access to external ram, MM0 and MM1. So, if you place jumpers in those headers it is soposed to work without external ram. Well it doesn't work! Not from eeprom nor loades with the cypress control panel. My .hex file is 10k (9679 bytes). My .iic file is 4k (3159 bytes). In the uvision2 the compiles tells me this: Program size: data=43.6 xdata=4635 code=3130. So one thing I don't get is the dada=43.6! What is it in? 43.6 what? I've never seen a .6 byte! So, I presume that my code is 3130bytes and xdata space is 4635bytes, this gives me 7765 bytes, that could fit in the 8k FX2. But I' not very familiar with the memory in this chip so I guess there are some blocks not usable or something. Well I decided to use the FX2LP chip instead, so my code could easily fit in 16K. I made a board with the FX2LP chip and the eprom only just to see if it enumerates properly, but no! I write the eeprom with the same firmware in the FX2 Dev Board and then put the eeprom to my little test board with the FX2LP chip. And I get device not recognized. If I run the little FX2LP board with no eeprom I get the default Cypress No-EEPROM device. Now I went back to uVision2 and chaged the BL51 settings in the target options. It was set to code at 0x4000 and xdata to 0x5000 as default, so I guessed that was the thing, so I changed it to code at 0x0000 and xdata to 0x0400 which is above 0x03CA (3130 bytes of code). This didn't work either yet it compiled with no errors and It works in the FX2 Dev Board but only with external ram settings in MM0 and MM1 jumpers off. So this means it is still using external ram. I need help either to set options un uVision2 of to understand how to run my firmware without external ram. Anything will be appreciated! Thanks for your time. Gabriel Camiro |
|
相关推荐
2个回答
|
|
46.3意味着在FX2内置的8051个内存中有46个字节和256个字节的3个字节。从8051个角度来看,这是“内部RAM”。在FX2LP内部的代码/数据RAM的16K出现在8051外部。
内存的256字节中有一些是位可寻址的(通过使用C语言中的布尔类型,如果你使用keil编译器)。 希望这有点帮助,斯图亚特 以上来自于百度翻译 以下为原文 46.3 means that you've 46 bytes and 3 bits of the 256 bytes of memory on the 8051 built into the FX2. From the 8051's point of view, this is "internal RAM". The 16K for code/data RAM inside the FX2LP appears external to the 8051. Some of the 256 bytes of internal memory is bit-addressable (by using the BOOL type in C, if you're using the Keil compiler). hope this helps a little, Stuart |
|
|
|
XDATA值在汇编语句中显示的是外部存储器的使用。16K是内存和内存内部登记FX2LP但解决像外部存储器。如果这是你不需要外部的RAM,但如果你声明变量和其他代码驻留在外部存储器中你需要一个外部RAM。我们要看代码了解必须使它完全运行在内存中修改。
当做, 阿南德 以上来自于百度翻译 以下为原文 The xdata value being shown in the compilation statement is external memory being used. The 16k is internal memory and the register memory is internal to FX2LP but is addressed like external memory. If only this is used you won't need external RAM but if you declare variable and other code which resides in external memory you'll need a external RAM. We'll have to look at the code to understand the modifications required to make it run fully in internal memory. Regards, Anand |
|
|
|
只有小组成员才能发言,加入小组>>
753个成员聚集在这个小组
加入小组2094 浏览 1 评论
1839 浏览 1 评论
3660 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1779 浏览 6 评论
1528 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
541浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
399浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
426浏览 2评论
372浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
897浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-13 16:59 , Processed in 1.334693 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号