用的芯片PIC32MX795F512L,编译出现bss段报错,
build/C32_PIC32MX795F512L/production/GM_FSFB2_Data.o: Link Error: Could not allocate section .bss, size = 34300 bytes, attributes = bss
build/C32_PIC32MX795F512L/production/GM_FSFB2.o: Link Error: Could not allocate section .bss, size = 904 bytes, attributes = bss
build/C32_PIC32MX795F512L/production/GM_FSFB2_Data.o: Link Error: Could not allocate section .data, size = 400 bytes, attributes = data
_iob.o: Link Error: Could not allocate section .data, size = 160 bytes, attributes = data
_iob.o: Link Error: Could not allocate section .bss, size = 64 bytes, attributes = bss
build/C32_PIC32MX795F512L/production/GM_FSFB2_VSN.o: Link Error: Could not allocate section .bss, size = 52 bytes, attributes = bss
sbrk.o: Link Error: Could not allocate section .bss, size = 28 bytes, attributes = bss
build/C32_PIC32MX795F512L/production/GM_FSFB2_PD.o: Link Error: Could not allocate section .bss, size = 24 bytes, attributes = bss
malloc.o: Link Error: Could not allocate section .bss, size = 16 bytes, attributes = bss
buf.o: Link Error: Could not allocate section .bss, size = 4 bytes, attributes = bss
Link Error: Could not allocate data memory
collect2: ld returned 1 exit status
make[2]: *** [dist/C32_PIC32MX795F512L/production/TWU0309.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
查了一下帖子说是使用large memory model,我使用的是MPLA x IDE V3.05
折腾半天也没找到在哪,请求高手出现指点 |