1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
背景:MPLAB X IDE 4.15、XC32 V2.05、和声V2.05、定制板使用PIC32 MZ2064 DAH176、NEWAVEN NHD-4.3-48022EF-ASXNα-T显示(4.3)、480X227像素、4线触摸触摸屏。我用其他处理器做的是,我将有一个特殊的消息重置并触发引导加载程序。它是一个简单的布尔函数,在主应用程序中,如果接收到特殊消息,将变量(EngIootLooter)设置为true;在Bootloader中,如果EngBootLooter为true,则在将Bootloader设置为false之后强制Bootloader;如果一切都变为地狱,则强制引导加载程序W。这是一个开关。这允许软件和硬件方法进入引导加载程序,并且已经证明对我来说是非常有用的。问题是,由于某种原因,我的变量声明根本不起作用(同样的代码,保存地址,例如为PIC32 MX130F064 D工作):编译器说它讨厌我的脸。它给出的原因如下。我只是不明白。这甚至不会导致引导加载程序(传统的,而不是LIVUEPATE)的问题。
以上来自于百度翻译 以下为原文 Background: MPLAB X IDE 4.15, XC32 v2.05, HARMony v2.05, custom board using PIC32MZ2064DAH176, Newhaven NHD-4.3-480272EF-ASXN#-T display (4.3", 480x272 pixel, 4 wire resitive touchscreen) I'm having a heck of a time with a variable that I use to communicate between the bootloader and the application. What I've done with other processors is that I'll have a special message reset and trigger the bootloader. It's a simple boolean that works as follows: in the main application, if the special message is received, set the variable (enterBootloader) to true; in the bootloader, if enterBootloader is true then force the bootloader after setting it to false; if everything goes to hell, force the bootloader with a dipswitch. This allows a software and hardware method to enter the bootloader and has proven quite useful for me. The problem is that for some reason my variable declaration is simply not working (this same code, save for the address, worked for a PIC32MX130F064D for example): bool enterBootloader __attribute__((persistent, coherent, address(0x80001000))); The compiler says it hates my face and the reason it gives is the following. I just don't get it. This didn't even cause problems in the bootloader (traditional, not liveupdate). Link Error: Could not allocate section '.enterBootloader.enterBootloader' at 0x80001000 SIZE 1 Link Error: Could not allocate data memory collect2.exe: error: ld returned 255 exit status make[2]: *** [dist/default/production/p31676_application.X.production.hex] Error 255 make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2 BUILD FAILED (exit value 2, total time: 1s) |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
5242 浏览 9 评论
2031 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3207 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2256 浏览 5 评论
778浏览 1评论
669浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
596浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
678浏览 0评论
577浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 17:25 , Processed in 1.228325 second(s), Total 76, Slave 60 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号