完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我想能够读取一个PIC32 MZ,并获得其HEX文件,然后调整配置位(在PUBALALAR读保护位),所以代码不能读取回来。我有一个Bootloader +应用程序,我希望能够在制造过程中同时把它们两个程序编程……在MPLAB程序员应用程序的ODL版本中,我确信你能做到这一点,但是看起来这个特性已经消失了。
以上来自于百度翻译 以下为原文 I want to be able to read a PIC32MZ, and get its hex file, then adjust the config bits ( in particualar the Read protect Bit ), so the code can't be read back.. I have a bootloader + application, and i want to be able to program both of them together during manufacturing.. In odl versions of the MPLAB programmer app, i'm sure you coudl do this, but it seems that this feature has gone. |
|
相关推荐
11个回答
|
|
我认为您可以使用Add loadloadProject选项统一MPLABX IDE中的Bootloader +应用程序的HEX文件,以便可以同时使用程序员对它们进行编程。和声
以上来自于百度翻译 以下为原文 I think you can unify the hex file of bootloader + application in MplabX-IDE using the add loadable project option so that you can program both of them at same time using programmer. you can Refer to section Debugging with a Bootloader and an Application of chapter bootloader_library help from help_harmony.pdf |
|
|
|
你本来希望如此。但遗憾的是它不起作用。这可能是因为我不得不把引导装载程序使它实际工作。(944)在路径/生产/基本的地址1fc0ffcCH之间的数据冲突。x.Engultudi.HEX和..…/..…//..…/V1Y07Y01/No.x.Purth.HEX(我已经更改路径/文件名来保护无辜者)
以上来自于百度翻译 以下为原文 You'd have hoped so. But sadly it does'nt work.. This might be because i've had to mangle the bootloader to make it actually work. (944) data conflict at address 1FC0FFCCh between path/production/basic.X.production.hex and ../../../../../../v1_07_01/name.X.production.hex ( i've changed the path/filenames to protect the innocent ) |
|
|
|
我尝试了最新的和2.03的作品。前面提到的冲突存在于发布版本中。MHC添加的应用程序链接器脚本中的代码行解决了这个问题。
以上来自于百度翻译 以下为原文 I tried on the latest and 2.03 it works. The conflict you mentioned exists in releases prior to this. The below line of code in the application linker script added by MHC resolves the issue. /DISCARD/ : { *(.config_*) } |
|
|
|
我尝试了最新的和2.03的作品。前面提到的冲突存在于发布版本中。据我所知,配置参数需要由引导加载程序而不是应用程序来设置,以避免在HEX的统一过程中发生冲突。OLVS在统一过程中忽略应用程序的配置参数。
以上来自于百度翻译 以下为原文 I tried on the latest and 2.03 it works. The conflict you mentioned exists in releases prior to this. As far as i understand the config parameters need to be set by the bootloader and not by the application in order to avoid the conflicts during the unification of hex. The below line of code in the application linker script added by MHC resolves the issue by ignoring the config parameters by the application during unification. /DISCARD/ : { *(.config_*) } |
|
|
|
我用2.04,它不工作。-(在2.03)没有尝试过。我想我可以试试看。
以上来自于百度翻译 以下为原文 I was using 2.04 and it doesnt work.. :-( Havn't tryed it in 2.03. I guess i can try it and see. |
|
|
|
|
|
|
|
我的应用程序是在1.07编写的,我用过的链接器脚本是从2.03借用的……它一直工作到你想统一它。你在ApPaCITONS链接器中讨论的修改是什么?
以上来自于百度翻译 以下为原文 My application was written in 1.07, the linker script i've used was borrowed from 2.03 though.. It all works untill you want to unify it. Is the modificaiton you talk about in the applcaitons linker? Attachment(s) app_mz_107_for_203booloader.ld.txt (54.89 KB) - downloaded 77 times |
|
|
|
是的,更改在应用程序链接器脚本中。如果通过应用程序启动的Bootloader库通过MHC再生,此代码将自动添加。无论如何,如果您不想做MHC,请在下面添加下面的代码:您所连接的链接脚本的968。
以上来自于百度翻译 以下为原文 Yes the change is in the application linker script. if you regenerate through MHC with bootloader library enabled for your application this code gets added automatically. Anyways if you dont want to do MHC, add the below code on line:968 of your attached linker script. /DISCARD/ : { *(.config_*) } |
|
|
|
谢谢,明天我再试一试。我将手动完成,因为我不想破坏工作1.07的应用程序。新项目将在2.04进行,所以希望解决这个问题。
以上来自于百度翻译 以下为原文 Thanks, i'll give this a try tommorrow. I'll do it manually, as i dont' want to upset the working 1.07 application.. New projects are goign to be in 2.04 so hopefully this is resolved. |
|
|
|
我总是创建两种配置,一种叫做释放,一种叫做调试。一旦做到这一点,MPLABX将生成两个对应于两个配置的宏,即XPRJIX版本和XPRJUDebug。然后,可以使用这两个宏来确定代码保护是否为ON或OFF。只要结合Bootloader和应用程序,就可以在生成后的批处理文件中调用HeMax来完成该任务。MPLABX有它自己的六合一。但是,您必须在XC8编译器手册中找到HeMax文档。
以上来自于百度翻译 以下为原文 I always create two configurations, one called RELEASE and one called DEBUG. Once you do that, MPLABX will generate two macros that correspond to the two configurations, XPRJ_RELEASE and XPRJ_DEBUG. You can then use these two macros to determine whether you want Code Protection to be ON or OFF. As far as combining bootloader and application goes, you can call hexmate in a post build batch file to do the job. MPLABX comes with its own hexmate. However, you'll have to find the hexmate documentation in the XC8 compiler's manual. |
|
|
|
添加上面的行,BTW,创建这些警告配置位:地址0x1fc0ffc4:fPLLRNG=7与设备数据库中的任何有效值不匹配。设置为默认值。配置位:地址0x1fc0ffc8:DMTcNT=31与设备数据库中的任何有效值不匹配。然而,由此产生的HEX文件,可以在一个统一的项目中使用,并且能够被编程。谢谢,这对我来说是一个巨大的节省时间。
以上来自于百度翻译 以下为原文 Adding the above line, btw, creates these warnings Configuration Bits: address 0x1FC0FFC4: FPLLRNG = 7 does not match any valid value in the device database. Setting to the default value. Configuration Bits: address 0x1FC0FFC8: DMTCNT = 31 does not match any valid value in the device database. Setting to the default value. However the resulting hex file, was able to be used in a unified project, and was able to be programmed. Thanks this is a huge time saver for me. |
|
|
|
只有小组成员才能发言,加入小组>>
5183 浏览 9 评论
2005 浏览 8 评论
1932 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3178 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2229 浏览 5 评论
739浏览 1评论
626浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
510浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
637浏览 0评论
535浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-27 20:14 , Processed in 1.482475 second(s), Total 95, Slave 79 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号