This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP432P401R: undetected erros when compile de program in the MSP432P401R

Part Number: MSP432P401R


Tool/software: Code Composer Studio

Hello fellows,

I tried compile my program, but some errors appear, I search in all files, for some mistakes who cause this erros, some bad variables, definitions or "include" exclusions. but apparently all apear to be right. if anyone have faced this situation please give some light, how to jump to the next step. I share a pic from the warning window and an .txt file with build configuration console.

Thanks in advance

**** Build of configuration Debug for project finalADS1292R ****

/Applications/ti/ccs910/ccs/utils/bin/gmake -k -j 3 all -O 
 
Building target: "finalADS1292R.out"
Invoking: ARM Linker
"/Applications/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --advice:power=all --define=__MSP432P401R__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -z -m"finalADS1292R.map" --heap_size=1024 --stack_size=512 -i"/Applications/ti/ccs910/ccs/ccs_base/arm/include" -i"/Applications/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/lib" -i"/Applications/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.4.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="finalADS1292R_linkInfo.xml" --rom_model -o "finalADS1292R.out" "./ADS1x9x.obj" "./ADS1x9x_ECG_Processing.obj" "./ADS1x9x_Resp_Processing.obj" "./ADS1x9x_USB_Communication.obj" "./AccelerometerInterface.obj" "./BMA280.obj" "./ECGInterface.obj" "./Executive.obj" "./GPIOInterface.obj" "./GSRInterface.obj" "./I2CInterface.obj" "./NFCForumType4TagType.obj" "./NFCInterface.obj" "./RF430CL331.obj" "./SPIInterface.obj" "./StateMachine.obj" "./TMP112A.obj" "./TemperatureInterface.obj" "./TimerInterface.obj" "./Timer_A.obj" "./eUSCIA1_SPI.obj" "./eUSCIB0_I2C.obj" "./main.obj" "./startup_msp432p401r_ccs.obj" "./system_msp432p401r.obj" "../msp432p401r.cmd"  -llibc.a 

<Linking>
warning #10247-D: creating output section ".TI.noinit" without a SECTIONS specification
warning #10247-D: creating output section ".TI.persistent" without a SECTIONS specification
error #10433-D: ALIAS'ed memory range, SRAM_DATA, may only be used for run placement and not for load placement for ".TI.persistent".
error #10010: errors encountered during linking; "finalADS1292R.out" not built
remark #10372-D: (ULP 4.1) Detected uninitialized Port 1 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
remark #10372-D: (ULP 4.1) Detected uninitialized Port 2 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
remark #10372-D: (ULP 4.1) Detected uninitialized Port 3 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
remark #10372-D: (ULP 4.1) Detected uninitialized Port 4 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
remark #10372-D: (ULP 4.1) Detected uninitialized Port 5 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
remark #10372-D: (ULP 4.1) Detected uninitialized Port 6 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
remark #10372-D: (ULP 4.1) Detected uninitialized Port 7 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
remark #10372-D: (ULP 4.1) Detected uninitialized Port 8 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
remark #10372-D: (ULP 4.1) Detected uninitialized Port 9 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
remark #10372-D: (ULP 4.1) Detected uninitialized Port 10 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
 
>> Compilation failure
makefile:163: recipe for target 'finalADS1292R.out' failed
gmake[1]: *** [finalADS1292R.out] Error 1
gmake: *** [all] Error 2
makefile:159: recipe for target 'all' failed

**** Build Finished ****

  • The root of the problem is that the linker command file msp432p401r.cmd does allocate the output sections .TI.noinit and .TI.persistent.  These sections are created when you use #pragma NOINIT and #pragma PERSISTENT.  For details on these pragmas, please search the TI ARM compiler manual.  

    One solution to consider is to change your code to not use those pragmas.  For now, I presume that is not practical.

    I cannot tell you how to change the linker command file to correctly allocate these two sections.  That requires knowledge of the details of your system which I lack.  That being the case, I will notify experts on your device about this thread.

    Thanks and regards,

    -George

  • Hello George , thanks for your answer.
    I would like not use #pragma, but my knowledge is not enough