microchip MPLAM 错误解决

1.production.elf section `.config_BFC02FF8' will not fit in region `config1'

解决方案:https://www.microchip.com/forums/m601748-print.aspx

Check your project for #pragma config statements in multiple files. From what I can tell, the error is caused when the same configuration word is being set from different files. Basically the linker is trying to shove two different values into the same configuration word. 

A .c file gets included once and once only. Every .c file that references a .h file that generates code generates that code again. Even if you have #ifndef wrappers the wrappers only prevent the same .h from being used multiple times within a single .c file.

A #define in a header file does not cause memory allocation but a #pragram config does. 

2. ld.exe Error: A heap is required, but has not been specified  collect2: ld returned 1 exit status

#program 定义变量,

产生的原因:工程内部调用了内存分配函数,应该在连接器内部用命令分配一个堆区!

解决方案:


在上面的设置选项中,设置堆的大小!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值