Part Number: AM5728
Other Parts Discussed in Thread: MATHLIB
Tool/software:
Hi expert,
I met link issue as my mcspi application. It is alignment issue right? Not the code overlap, right?
Would you please guide me how to handle this?
The linker.cmd under ./bin/debug/configuro/ seems come from some template, can I touch it? or how to change the .fardata section size?
Thanks!
error: program will not fit into
available memory. run placement with alignment fails for section ".fardata"
size 0x4023251 . Available memory ranges:
EXT_DATA size: 0x100000 unused: 0xdd08c max hole: 0xdd05e
# Making bin/debug/obj/mcspi_dma.oe66 ...
/home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../ti-cgt-c6000_8.2.2/bin/cl6x -c -qq -pdsw225 -ppd=bin/debug/obj/mcspi_dma.oe66.dep -ppa -D_DEBUG_=1 --symdebug:dwarf -@bin/debug/configuro/compiler.opt -I. -I ../source/DSPLib/ -I ../source/MathLib/ -I../shared/ -I../shared/bigdataxlat -I../shared/bigdataxlat/bios -I/home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../edma3_lld_2_12_05_30C/packages/ -D_CORE_DSP1_ -DSOC_AM572x --output_file=bin/debug/obj/mcspi_dma.oe66 -fc mcspi_dma.c
"mcspi_dma.c", line 223: warning: function "printRegAddress" declared implicitly
"mcspi_dma.c", line 226: warning: declaration is incompatible with previous "printRegAddress" (declared at line 223)
"mcspi_dma.c", line 233: warning: variable "newLine" was declared but never referenced
"mcspi_dma.c", line 237: warning: variable "colonPrompt" was declared but never referenced
#
# Making bin/debug/obj/SPI_drv.oe66 ...
/home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../ti-cgt-c6000_8.2.2/bin/cl6x -c -qq -pdsw225 -ppd=bin/debug/obj/SPI_drv.oe66.dep -ppa -D_DEBUG_=1 --symdebug:dwarf -@bin/debug/configuro/compiler.opt -I. -I ../source/DSPLib/ -I ../source/MathLib/ -I../shared/ -I../shared/bigdataxlat -I../shared/bigdataxlat/bios -I/home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../edma3_lld_2_12_05_30C/packages/ -D_CORE_DSP1_ -DSOC_AM572x --output_file=bin/debug/obj/SPI_drv.oe66 -fc /home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../pdk_am57xx_1_0_10/packages/ti/drv/spi/src/SPI_drv.c
"/home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../pdk_am57xx_1_0_10/packages/ti/drv/spi/src/SPI_drv.c", line 161: warning: argument of type "SPI_Handle" is incompatible with parameter of type "xdc_IArg"
"/home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../pdk_am57xx_1_0_10/packages/ti/drv/spi/src/SPI_drv.c", line 163: warning: argument of type "SPI_Handle" is incompatible with parameter of type "xdc_IArg"
"/home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../pdk_am57xx_1_0_10/packages/ti/drv/spi/src/SPI_drv.c", line 264: warning: argument of type "MCSPI_Handle" is incompatible with parameter of type "xdc_IArg"
"/home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../pdk_am57xx_1_0_10/packages/ti/drv/spi/src/SPI_drv.c", line 272: warning: argument of type "MCSPI_Handle" is incompatible with parameter of type "xdc_IArg"
#
# Making bin/debug/obj/SPI_v1.oe66 ...
/home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../ti-cgt-c6000_8.2.2/bin/cl6x -c -qq -pdsw225 -ppd=bin/debug/obj/SPI_v1.oe66.dep -ppa -D_DEBUG_=1 --symdebug:dwarf -@bin/debug/configuro/compiler.opt -I. -I ../source/DSPLib/ -I ../source/MathLib/ -I../shared/ -I../shared/bigdataxlat -I../shared/bigdataxlat/bios -I/home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../edma3_lld_2_12_05_30C/packages/ -D_CORE_DSP1_ -DSOC_AM572x --output_file=bin/debug/obj/SPI_v1.oe66 -fc /home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../pdk_am57xx_1_0_10/packages/ti/drv/spi/src/v1/SPI_v1.c
#
# Making bin/debug/obj/SPI_soc.oe66 ...
/home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../ti-cgt-c6000_8.2.2/bin/cl6x -c -qq -pdsw225 -ppd=bin/debug/obj/SPI_soc.oe66.dep -ppa -D_DEBUG_=1 --symdebug:dwarf -@bin/debug/configuro/compiler.opt -I. -I ../source/DSPLib/ -I ../source/MathLib/ -I../shared/ -I../shared/bigdataxlat -I../shared/bigdataxlat/bios -I/home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../edma3_lld_2_12_05_30C/packages/ -D_CORE_DSP1_ -DSOC_AM572x --output_file=bin/debug/obj/SPI_soc.oe66 -fc /home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../pdk_am57xx_1_0_10/packages/ti/drv/spi/soc/am572x/SPI_soc.c
#
# Making bin/debug/server_dsp1.xe66 ...
/home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../ti-cgt-c6000_8.2.2/bin/cl6x -z -w -q -u _c_int00 -c -m bin/debug/obj/server_dsp1.xe66.map -o bin/debug/server_dsp1.xe66 bin/debug/obj/MainDsp1.oe66 bin/debug/obj/Server.oe66 bin/debug/obj/edma_test.oe66 bin/debug/obj/crc32.oe66 bin/debug/obj/bigdataxlat.oe66 bin/debug/obj/mcspi_dma.oe66 bin/debug/obj/SPI_drv.oe66 bin/debug/obj/SPI_v1.oe66 bin/debug/obj/SPI_soc.oe66 \
bin/debug/configuro/linker.cmd -l /home/xivi/AM57xx/ti-processor-sdk-rtos-am57xx-evm-04.03.00.05/pdk_am57xx_1_0_10/packages/../../ti-cgt-c6000_8.2.2/lib/libc.a -l ../source/dsplib.ae66 -l ../source/mathlib.ae66
<Linking>
"bin/debug/configuro/linker.cmd", line 244: error: program will not fit into
available memory. run placement with alignment fails for section ".fardata"
size 0x4023251 . Available memory ranges:
EXT_DATA size: 0x100000 unused: 0xdd08c max hole: 0xdd05e
error: errors encountered during linking; "bin/debug/server_dsp1.xe66" not
built
>> Compilation failure
make[2]: *** [bin/debug/server_dsp1.xe66] Error 1
make[2]: Leaving directory `/home/xivi/AM57xx/Demo/rtos-examples/tl-linux-ipc-examples/2dsp_v0.7/src/dsp1'
make[1]: *** [debug] Error 2
make[1]: Leaving directory `/home/xivi/AM57xx/Demo/rtos-examples/tl-linux-ipc-examples/2dsp_v0.7/src/dsp1'
make: *** [dsp1] Error 2