完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我找不到一种在DE库中预先加载值的方法,类似于C30/PIC24F。我试着在固定地址上设置一个数组,或者删除仿真区域数组中的“nuload”属性,然后初始化它,但是…不管用,谢谢你的帮助。
以上来自于百度翻译 以下为原文 I can't find a way for pre-loading values in DEE library, something like BYTE __attribute__ ((space(eedata))) eeData[20+4+MAX_HOPS] = { 0, 251, // house, address in C30 / PIC24F. I tried setting up an array at fixed address, or removing that "noload" attribute in the emulation area array and then initializing it but... it does not work. Thanks for any help |
|
相关推荐
13个回答
|
|
是的,否则我必须返回到检查签名的旧循环,如果没有找到,在第一次运行时初始化EdEATA。
以上来自于百度翻译 以下为原文 Yeah, otherwise I will have to revert back to the old loop that checks for a signature and if it's not found, initializes the EEdata at first run |
|
|
|
您好,我认为您不能从C30/XC16对16位PIC设备进行这样的操作。您可能需要做一些类似MPFS2和GRC的事情,用闪存的初始化数据创建一个.s汇编源文件。迈西尔
以上来自于百度翻译 以下为原文 Hi, I think you cannot do that from C30 / XC16 for 16 bit PIC devices. You may have to do something like MPFS2 and GRC do, creating a .S assembler source file with initialization data for flash memory. Mysil |
|
|
|
在一次写入“仿真EEPROM”之后,我在DEE的Flash中写入了“什么”,我可以看到上字节设置为1(可能意味着“1写入”),而最低值设置为i存储的值。这使得预初始化数组(甚至在汇编程序中)变得更加复杂。你可能会冒险创建与DEE基础设施的问题…所以我会使用这个循环谢谢!
以上来自于百度翻译 以下为原文 I digged a bit into "what" DEE writes into Flash after one single write to the "emulated eeprom" and I can see the upper byte set to 1 (possibly meaning "1 write") and the lowest one set to the value I stored. This makes somewhat more complicated to pre-initialize the array (even in assembler) since you would risk creating issues with the DEE infrastructure... so well I will use the loop Thanks! |
|
|
|
签名很好,我在EEPROM上使用它。好的是,你只需要改变一个字符就可以初始化。“活得长,活得好”
以上来自于百度翻译 以下为原文 Signature is good, I use that on an eeprom. Good thing about that is, you only have to change one character to cause an init. sequence. "Live long and prosper" |
|
|
|
是的,用这个方法好几年了。然后我发现了“预初始化”的方式(特别是在PIC24),所以……但都OK。在这个设备地址必须是!=255,所以这是一个好的签名。
以上来自于百度翻译 以下为原文 Yep used that method for years. Then I discovered the "preinitializing" way of doing that (especially on PIC24) and so... But all ok. In this device Address has to be != 255, so this is a good signature. |
|
|
|
亲爱的CinziaG,你能发布你的预初始化值的解决方案吗?目前,我已经尝试了这么多的组合来获得它的工作,但是我只得到编译器错误://int ScMyTysAyAtditTyx((空间(PSV),地址(0x29 000)))//int ScMySoMyAtditTyx((空间(PROG),地址(0x29 000))=‘H’;//const INTITY ItAtQueTyx((地址(0x29 000)))ScValMe=“H”;没有运气。我还没有。此外,我还成功地使用了DEE。
以上来自于百度翻译 以下为原文 Dear CinziaG, can you post your solution of preinitializing the values? Currently I've tried so many combinations to get it work but I only get compiler errors: //int scanMode __attribute__((space(psv),address(0x29000))) = 'h'; //int scanMode __attribute__((space(prog),address(0x29000))) = 'h'; //const int __attribute__((address(0x29000))) scanMode = 'h'; No luck with them yet. Besides I'm also using DEE succesfully. |
|
|
|
类似的东西。Klattu Barada Nikto(Apple),(空间(PROG),剖面(“WorkDeavisher”),Fiel-Load(0xA5))GoTr[] =“Read”;你仍然可以改变地址并对齐它。
以上来自于百度翻译 以下为原文 Something like that. __prog__ char __attribute__((space(prog),section("WorldDestroyer"),fillupper(0xa5))) Gort[]="Klattu Barada Nikto"; You can still change the address and align it. |
|
|
|
谢谢你重播GoT2015,我会试试你的建议。来自秘鲁的问候!
以上来自于百度翻译 以下为原文 Thanks for your replay Gort2015, I'm gonna try your advice. Greetings from Peru! |
|
|
|
|
|
|
|
不确定这个建议,但最后我在Flash中创建了我的副本:const结构的SaveDyPosits Debug参数= {BLAH BLAH},并且在启动时,我首先检查签名是否存在于“仿真EEPROM”中:如果不是,我会用DATAEEWREST()写入每个值。
以上来自于百度翻译 以下为原文 Not sure about that suggestion but in the end I created my copy in Flash: const struct SAVED_PARAMETERS DefaultParameters = { blah blah } And, at boot, I first check if the signature is present in the "emulated eeprom": if not, I go writing every single value into it using DataEEWrite() |
|
|
|
这是在Flash,但它可能会更容易,很多。
以上来自于百度翻译 以下为原文 That is in flash but it could be easier, a lot. |
|
|
|
我对DEE仿真的理解是,Flash中的值包含一个“参数”值和值。这些函数还存储一些在初始化过程中很难得到的Flash状态(活动行、擦除周期)。我使用RAM来保存工作参数,以及一个副本来查找更改。如果需要,初始化将从闪存中获取值,检查完整性和加载默认值。然后定期检查复制和更新Flash功能将填补根据需要闪光灯。文斯
以上来自于百度翻译 以下为原文 My understanding of the DEE emulation is that the values in flash contain a 'parameter' number along with the value. The functions also store some flash status (active bank, number of erase cycles) that may be hard to get right on initialization. I use RAM to hold my working parameters, along with a copy to look for changes. Initialization will get the values from the flash, check integrity, and load default values if needed. Then the regular check against copy and update flash functions will fill the flash as needed. Vince |
|
|
|
是的,DEE存储关于使用/水准等的信息。但是,是的,通常是有效的…问题是支持几个家庭的图片。
以上来自于百度翻译 以下为原文 Yep, DEE stores info about usage/levelling or so. But, yes, usually it works... the issues came about supporting several families of PICs |
|
|
|
只有小组成员才能发言,加入小组>>
5192 浏览 9 评论
2011 浏览 8 评论
1936 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3183 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2238 浏览 5 评论
746浏览 1评论
633浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
517浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
644浏览 0评论
544浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-1 09:49 , Processed in 1.515328 second(s), Total 99, Slave 83 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号