完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我目前使用的是PIC16F18326和奇迹…如果我没有在MPLAX中指定代码偏移,即使用任何默认值,我的程序代码总是放在Flash第一页的末尾。问题是为什么代码不能在重置和中断向量之后立即启动。(顺便说一下,我没有指定中断)我已经检查了XC8手册,但不能看到链接策略。
以上来自于百度翻译 以下为原文 I am currently using a PIC16F18326 and wonder... If I have not specified CODEOFFSET in Mplab X, I.E. use whatever default there is, my program code is always put up near the end of the first page of flash. Question is why does the code not start right after the reset and interrupt vectors. (by the way, I have no interrupts specified) I have checked the XC8 manual but cannot see the linker strategy for this. |
|
相关推荐
1个回答
|
|
|
对于在何处可以找到东西的约束较少,编译器有更好的机会将所有东西都装配到可用的空间中。因此,由于PICC版本9左右,分配不限于“从底部开始”。编译器假定整个程序内存都可供使用。如果你有理由排除其中的一些问题,你必须通过指定允许使用的“ROM”(历史工件)的范围来告诉编译器。
以上来自于百度翻译 以下为原文 With fewer constraints on where it can locate stuff, the compiler has a better chance of fitting everything into the space available. So, since PICC version 9 or so, allocation has not been limited to "start from the bottom". The compiler assumes that the whole of program memory is available for its use. If you have a reason to exclude some of it, you must tell the compiler by specifying what range of "ROM" (a historical artifact) it is allowed to use. |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1124浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1095浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
873浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 02:39 , Processed in 0.711675 second(s), Total 72, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1922