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 定义变量,
产生的原因:工程内部调用了内存分配函数,应该在连接器内部用命令分配一个堆区!
解决方案:
在上面的设置选项中,设置堆的大小!