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.
Part Number: MSP432P401R
Tool/software: Code Composer Studio
Hi,
I'm using CCS Version: 10.1.0.00010, and am porting code that last ran under v6.3 years ago (time and money stuff)
I'm getting the error unresolved symbol for __delay_cycles, so I'm guessing a flag somewhere, but I don't know where.
I looked in this forum, using __delay_cycles as the keyword but my CCS properties page looks different from the related question answered a year ago.
Any help?
bob s
Hi,
More information, when I built a project from "new" rather than import an old, and then copied in the very same files, the problem did not appear.
Here's the error build below:
**** Build of configuration Debug__TI_bad for project RapidEnergyUnit ****
/Applications/ti/ccs1010/ccs/utils/bin/gmake -k all
Building target: "RapidEnergyUnit.out"
Invoking: MSP432 Linker
"/Applications/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armcl" -me --advice:power=all -g --display_error_number --diag_wrap=off --diag_warning=225 -z -m"RapidEnergyUnit.map" -i"/Applications/ti/ccs1010/ccs/ccs_base/arm/include" -i"/Applications/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/lib" -i"/Applications/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include" --reread_libs --display_error_number --warn_sections --diag_wrap=off --xml_link_info="RapidEnergyUnit_linkInfo.xml" --rom_model -o "RapidEnergyUnit.out" "./EU_board_regmap_v1.obj" "./RTC_Library.obj" "./bfix.obj" "./charge_control.obj" "./dev_config.obj" "./dictionary.obj" "./myList.obj" "./myQueue.obj" "./processNVM.obj" "./processRTC.obj" "./reuc_main.obj" "./reucmds.obj" "./startup_msp432p401r_gcc.obj" "./strncasecmp.obj" "./strptime.obj" "./system_msp432p401r.obj" "./tasking.obj" "./utilities.obj" "../linker_directives.cmd" "/Applications/ti/simplelink_msp432p4_sdk_3_40_01_02/source/ti/devices/msp432p4xx/driverlib/ccs/msp432p4xx_driverlib.lib" -llibc.a
<Linking>
warning #10210-D: creating ".stack" section with default size of 0x800; use the -stack option to change the default size
warning #10210-D: creating ".sysmem" section with default size of 0x800; use the -heap option to change the default size
"../linker_directives.cmd", line 67: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. placement with alignment fails for section ".text" size 0x19289. Available memory ranges:
MAIN size: 0x40000 unused: 0x18cdc max hole: 0x18cdc
undefined first referenced
symbol in file
--------- ----------------
__delay_cycles ./reuc_main.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "RapidEnergyUnit.out" not built
remark #10371-D: (ULP 1.1) Detected no uses of low power mode state changing instructions
>> Compilation failure
makefile:156: recipe for target 'RapidEnergyUnit.out' failed
gmake: *** [RapidEnergyUnit.out] Error 1
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
Regarding:
robert schaefer said:"../linker_directives.cmd", line 67: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. placement with alignment fails for section ".text" size 0x19289. Available memory ranges:
MAIN size: 0x40000 unused: 0x18cdc max hole: 0x18cdc
Please see: https://processors.wiki.ti.com/index.php/Compiler/diagnostic_messages/10099
As for:
robert schaefer said:undefined first referenced
symbol in file
--------- ----------------
__delay_cycles ./reuc_main.obj
error #10234-D: unresolved symbols remain
I'm not sure why you are getting that error. I'll need to follow up with a compiler expert
Thanks
ki
Regarding ...
robert schaefer said:undefined first referenced
symbol in file
--------- ----------------
__delay_cycles ./reuc_main.obj
I don't know why this happened. But some compiler options that are required when building for MSP432 are missing. They are ...
-mv7M4
--code_state=16
--float_support=FPv4SPD16
Add those options. Then rebuild the entire project.
Thanks and regards,
-George
Keith Barkley said:I think _delay_cycles() only has 1 underscore at the beginning.
Sorry, Keith, but this is a rare occasion where you are incorrect. This intrinsic begins with two underscores. Please search for it in the TI ARM compiler manual.
Thanks and regards,
-George
That's what I get for getting the answer from other questions on the forum as opposed to my source code!