Hello,
I need to store values in an integer array whose size is approximately 4096.
I declared :
int Samp_Value[4096];
But the compiler says:
/*************************************/
xldtob.o: Link Error: Could not allocate section .data, size = 72 bytes, attributes = data
Objects\USB Data Logger - C30\usb_host_msd.o: Link Error: Could not allocate section _019a3cb05e3112c0, size = 58 bytes, attributes = bss
xldtob.o: Link Error: Could not allocate section .dconst, size = 50 bytes, attributes = data
xlitob.o: Link Error: Could not allocate section .data, size = 34 bytes, attributes = data
Objects\USB Data Logger - C30\usb_host.o: Link Error: Could not allocate section _01a026905e3112be, size = 16 bytes, attributes = bss
Objects\USB Data Logger - C30\usb_config.o: Link Error: Could not allocate section .data, size = 28 bytes, attributes = data
Objects\USB Data Logger - C30\usb_host.o: Link Error: Could not allocate section .bss, size = 18 bytes, attributes = bss
Objects\USB Data Logger - C30\mainprogram.o: Link Error: Could not allocate section .pbss, size = 16 bytes, attributes = persist
Objects\USB Data Logger - C30\mainprogram.o: Link Error: Could not allocate section .data, size = 10 bytes, attributes = data
Objects\USB Data Logger - C30\usb_host_msd_scsi.o: Link Error: Could not allocate section .bss, size = 6 bytes, attributes = bss
malloc.o: Link Error: Could not allocate section .data, size = 6 bytes, attributes = data
ldiv.o: Link Error: Could not allocate section .data, size = 2 bytes, attributes = data
xgenld.o: Link Error: Could not allocate section .dconst, size = 2 bytes, attributes = data
div.o: Link Error: Could not allocate section .data, size = 2 bytes, attributes = data
brk.o: Link Error: Could not allocate section .bss, size = 2 bytes, attributes = bss
heap: Link Error: Could not allocate section .heap, size = 512 bytes, attributes = heap
Link Error: Could not allocate data memory
Link step failed.
/*****************************************************/
when I decalre
int Samp_Value[1024];
It successfully compiles.
Is there any way to increase the size upto 4096?
I am using pic24fj256gb110 with mplab icd3.
Thank you.