完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
Heloi使用PIC32 MX570F512L。我创建了一个使用Hydio2.05.01的引导加载程序。效果很好。但是引导加载程序在程序Flash区域中编程,而对于我的项目,我希望它在引导闪存区域中被编程。我知道要做到这一点,我需要修改我的链接器脚本。既然我是新手,有人能告诉我或者解释需要改变什么。我的Bootloader大小在0x1D00左右。这是由和谐产生的链接器脚本的一部分。您的帮助将不胜感激。
以上来自于百度翻译 以下为原文 hello i'm using PIC32MX570F512L. I've created a bootloader using hARMony 2.05.01. It worked perfectly. but the bootloader is programmed in program flash region and for my project i want it instead to be programmed in the boot flash region. I know that to do this i need to modify my linker script. Since i'm new to this can someone tell me or explain what need to be changed. My bootloader size is around 0x1d00. This is part of linker script generated by harmony. Your help would be appreciated ./************************************************************************* * For interrupt vector handling *************************************************************************/ PROVIDE(_vector_spacing = 0x00000001); _ebase_address = 0x9D000000; /************************************************************************* * Memory Address Equates * _RESET_ADDR -- Reset Vector * _BEV_EXCPT_ADDR -- Boot exception Vector * _DBG_EXCPT_ADDR -- In-circuit Debugging Exception Vector * _DBG_CODE_ADDR -- In-circuit Debug Executive address * _DBG_CODE_SIZE -- In-circuit Debug Executive size * _GEN_EXCPT_ADDR -- General Exception Vector *************************************************************************/ _RESET_ADDR = 0xBFC00000; _BEV_EXCPT_ADDR = (0xBFC00000 + 0x380); _DBG_EXCPT_ADDR = (0xBFC00000 + 0x480); _DBG_CODE_ADDR = 0x9FC00490; _DBG_CODE_SIZE = 0x760; _GEN_EXCPT_ADDR = _ebase_address + 0x180; /************************************************************************* * Memory Regions * * Memory regions without attributes cannot be used for orphaned sections. * Only sections specifically assigned to these regions can be allocated * into these regions. *************************************************************************/ MEMORY { kseg0_program_mem (rx) : ORIGIN = 0x9D000000, LENGTH = 0x2000 /* All C Files will be located here */ kseg0_boot_mem : ORIGIN = 0x9FC00000, LENGTH = 0x0 /* This memory region is dummy */ config3 : ORIGIN = 0xBFC00BF0, LENGTH = 0x4 config2 : ORIGIN = 0xBFC00BF4, LENGTH = 0x4 config1 : ORIGIN = 0xBFC00BF8, LENGTH = 0x4 config0 : ORIGIN = 0xBFC00BFC, LENGTH = 0x4 kseg1_boot_mem : ORIGIN = 0xBFC00000, LENGTH = 0x300 /* C Startup code */ kseg1_data_mem (w!x) : ORIGIN = 0xA0000000, LENGTH = 0x10000 sfrs : ORIGIN = 0xBF800000, LENGTH = 0x100000 debug_exec_mem : ORIGIN = 0x9FC00490, LENGTH = 0x760 configsfrs : ORIGIN = 0xBFC00BF0, LENGTH = 0x10 } |
|
相关推荐
3个回答
|
|
引导闪存太小,不能适合您的引导加载程序。可用空间仅为0x3f0字节。
以上来自于百度翻译 以下为原文 Boot Flash is too small to fit your bootloader. The usable space is only 0x3f0 bytes. |
|
|
|
好的,谢谢。所以,要清楚应用笔记AN1388中的内存映射不是正确的吗?
以上来自于百度翻译 以下为原文 ok thankyou. so just to be clear the memory map in the application note AN1388 is not the correct one? Attached Image(s) |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
5223 浏览 9 评论
2024 浏览 8 评论
1949 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3198 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2252 浏览 5 评论
769浏览 1评论
655浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
583浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
667浏览 0评论
569浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-16 18:46 , Processed in 1.221069 second(s), Total 51, Slave 45 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号