Other Parts Discussed in Thread: OMAPL138, CCSTUDIO, OMAP-L138,
Tool/software: TI C/C++ Compiler
Hi Team,
I am currently using OMAPL138 board with CCstudio version 7. My requirement is to build an application with PRU compiler and load it.
So i installed PRU compiler version 2.1.4. and created a hello world project with pru as compiler.
While building this project I see following warnings.
Linking>
warning #10247-D: creating output section ".text" without a SECTIONS specification
warning #10247-D: creating output section ".cinit" without a SECTIONS specification
warning #10247-D: creating output section ".rodata" without a SECTIONS specification
warning #10247-D: creating output section ".stack" without a SECTIONS specification
warning #10247-D: creating output section ".fardata" without a SECTIONS specification
warning #10247-D: creating output section ".rofardata" without a SECTIONS specification
warning #10247-D: creating output section ".farbss" without a SECTIONS specification
warning #10247-D: creating output section ".sysmem" without a SECTIONS specification
warning #10210-D: creating ".stack" section with default size of 0x100; use the -stack option to change the default size
warning #10210-D: creating ".sysmem" section with default size of 0x100; use the -heap option to change the default size
'Finished building target: PRU_test.out'
' '
'Invoking: PRU Hex Utility'
"C:/ti/ccsv7/tools/compiler/ti-cgt-pru_2.1.4/bin/hexpru" -o "PRU_test.hex" "PRU_test.out"
Translating to Extended Tektronix format...
"PRU_test.out" .text ==> .text
"PRU_test.out" .rofardata ==> .rofardata
"PRU_test.out" .rodata ==> .rodata
"PRU_test.out" .cinit ==> .cinit
warning: section PRU_test.out(.rofardata) was padded by 3 to a size of 260 to
satisfy the specified memory width of 4
'Finished building: PRU_test.hex'
' '
though it created a .out file I am not able to load it and execute it. I see following error.
: a data verification error occurred, file load failed.
PRU_0: File Loader: Verification failed: Values at address 0x0008@Program_Memory do not match Please verify target memory and memory map.
then i enabled linker cmd file in the path C:\ti\ccsv7\tools\compiler\ti-cgt-pru_2.1.4\lib\lnk.cmd.
But still i see compiler warnings
warning: section PRU_test.out(.fardata) was padded by 1 to a size of 416 to
satisfy the specified memory width of 4
warning: section PRU_test.out(.rofardata) at 020373h overlaps
Not sure which linker command file i need to add to run basic program on PRU.
Please provide your suggestions.
Thanks
Phani