完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,我使我的程序正常,它的工作原理。我不会在18F67 K22中用Bootloader来记录这个PrGrand,我使用自制软件。该软件只能将HEX文件从最低闪存地址转移。它不能跳过Flash中的空闲范围。XC8编译我的程序。0x00上的复位向量,中断0x08 ANS 0x018。然后重置向量A在跳转地址后的交织程序等。然后编译器生成一个大的空白空间,并在0x01C1234中生成实际程序。结果是,我的PC软件在PIC中有很多千兆字节的移位,是空白的。这需要很长时间。我可以确定他必须跳过的地址范围。比每次我计算这个范围。这是LaboRoS.我能告诉XC8,他必须避免空格吗?
以上来自于百度翻译 以下为原文 Hello, I make my program normaly and it works. I wont toload this porgram with an bootloader in the 18F67K22 and I use a homemade software. This software can shift the hex file from the lowest flash address only. It cannot skip free ranges in the flash. The XC8 compiles my program. The reset vector on 0x00, interrupts 0x08 ans 0x018. Then the reset vector a jump address after the interruot routines etc.. Then the compiler makes a big blank space and in 0x01C1234 comes the actuelly program. That has the consequence, that my pc software have to many kilobytes shift in the pic, who is blank. And this takes a long time. I can determine ranges of address who he have to skip. Than every time I have to calculate this ranges. This is laborius. Can I tell to the XC8, that he have to avoid blank spaces? |
|
相关推荐
4个回答
|
|
唯一的解决方案是计算出你的程序有多大,然后编辑你的项目属性,只让它使用超过ROM的数量。最近版本的XC8总是把程序代码放在可用的ROM空间的顶部。从编译器编写者之一的ASPXα1050148。
以上来自于百度翻译 以下为原文 The only solution is to work out roughly how big your program is, then edit your project properties to only let it use a little more than that amount of ROM. Recent versions of XC8 will always place the program code at the top of available ROM space. Edit: See http://www.microchip.com/forums/m1050058.aspx#1050148 from one of the compiler writers. |
|
|
|
你需要修复自制的引导程序软件。可选地,您可以使用闪光灯填充。
以上来自于百度翻译 以下为原文 You need the fix the homemade bootloader software. Optionally you can use a flash fill. |
|
|
|
|
|
|
|
我确实将应用程序的Flash范围限制为0x0-0x012FFF。引导加载程序为0x01D000。当引导引导程序应该被跳转时,这也适用于应用程序的跳转地址。我用MPLAB8读出了Bootloader,导出了HEX文件0x01D0000—0x01FFFE,并将其写入了应用程序的MPLABX项目的加载程序中。
以上来自于百度翻译 以下为原文 I did restrict the flash range for the application to 0x0 - 0x012FFF. The bootloader is in 0x01D000. This ist the jump address also for the application when the bootloader should be jumped. I read out the bootloader with the MPLAB8, export the hex file 0x01D000 - 0x01fffe and wrote this in the loadables of the MPALBX project of the application. This works. |
|
|
|
只有小组成员才能发言,加入小组>>
5362 浏览 9 评论
2093 浏览 8 评论
1992 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3274 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2305 浏览 5 评论
870浏览 1评论
758浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
699浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
750浏览 0评论
644浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-24 16:09 , Processed in 1.356024 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191