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.
Hi there,
When I attempt to debug my project I often get the following error:
CORTEX_M4_0: GEL: Encountered a problem loading file: C:\StellarisWare\driverlib\ccs-cm4f\Debug\driverlib-cm4f.lib ".lib" is not a legal file extension
I found this post suggesting I had set the "Output type" to be Static Library instead of Executable, however my output type is Exe but greyed out (see image below) which makes me suspicious because I would expect to be able to change the output type (actually I checked all my other projects in the workspace and they are all greyed out too....
When I debugged the project for the very first time it actually went into debug mode and ran fine once. Then I changed NO settings and debugged it again but it only partly ran and hung at a point (I have detailed that here), then I tried again and it wouldn't even enter debug mode due to the error above. Now it throws this error about every 3rd time I try to debug it.
Peter,
The name of the project shown in the screenshot and the one that CCS is trying to load in the error message are two different ones.
Your executable project is "I2C - Copied from 4th Hello World" and the one CCS is trying to load is "C:\StellarisWare\driverlib\ccs-cm4f\Debug\driverlib-cm4f.lib" which is a library project included with Stellarisware. In the Project Explorer view, make sure you are selecting your executable project before clicking on the "Debug" button.
Hi AartiG,
thanks for your reply. I'm attaching the build output from the console, notably when it builds OK it contains these lines at the linking stage
"-l"C:\StellarisWare/driverlib/ccs-cm4f/Debug/driverlib-cm4f.lib" -l"C:\StellarisWare/grlib/ccs-cm4f/Debug/grlib-cm4f.lib" "../lm4f232h5qd.cmd"
<Linking>
'Finished building target: I2C - Copied from 4th Hello World.out'
' '
**** Build Finished ****"
So that lib file is certainly used in the build.
regards
Peter
**** Build of configuration Debug for project I2C - Copied from 4th Hello World **** C:\Program Files\TI\ccsv5\utils\bin\gmake -k all 'Building file: ../master_slave_loopback.c' 'Invoking: ARM Compiler' "C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/StellarisWare" --include_path="C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare/boards/ek-lm4f232" --gcc --define=ccs --define=PART_LM4F232H5QD --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="master_slave_loopback.pp" "../master_slave_loopback.c" 'Finished building: ../master_slave_loopback.c' ' ' 'Building file: ../startup_ccs.c' 'Invoking: ARM Compiler' "C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/StellarisWare" --include_path="C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare/boards/ek-lm4f232" --gcc --define=ccs --define=PART_LM4F232H5QD --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="startup_ccs.pp" "../startup_ccs.c" 'Finished building: ../startup_ccs.c' ' ' 'Building file: C:/StellarisWare/utils/cmdline.c' 'Invoking: ARM Compiler' "C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/StellarisWare" --include_path="C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare/boards/ek-lm4f232" --gcc --define=ccs --define=PART_LM4F232H5QD --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="utils/cmdline.pp" --obj_directory="utils" "C:/StellarisWare/utils/cmdline.c" 'Finished building: C:/StellarisWare/utils/cmdline.c' ' ' 'Building file: C:/StellarisWare/utils/cpu_usage.c' 'Invoking: ARM Compiler' "C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/StellarisWare" --include_path="C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare/boards/ek-lm4f232" --gcc --define=ccs --define=PART_LM4F232H5QD --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="utils/cpu_usage.pp" --obj_directory="utils" "C:/StellarisWare/utils/cpu_usage.c" 'Finished building: C:/StellarisWare/utils/cpu_usage.c' ' ' 'Building file: C:/StellarisWare/utils/crc.c' 'Invoking: ARM Compiler' "C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/StellarisWare" --include_path="C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare/boards/ek-lm4f232" --gcc --define=ccs --define=PART_LM4F232H5QD --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="utils/crc.pp" --obj_directory="utils" "C:/StellarisWare/utils/crc.c" 'Finished building: C:/StellarisWare/utils/crc.c' ' ' 'Building file: C:/StellarisWare/utils/flash_pb.c' 'Invoking: ARM Compiler' "C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/StellarisWare" --include_path="C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare/boards/ek-lm4f232" --gcc --define=ccs --define=PART_LM4F232H5QD --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="utils/flash_pb.pp" --obj_directory="utils" "C:/StellarisWare/utils/flash_pb.c" 'Finished building: C:/StellarisWare/utils/flash_pb.c' ' ' 'Building file: C:/StellarisWare/utils/isqrt.c' 'Invoking: ARM Compiler' "C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/StellarisWare" --include_path="C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare/boards/ek-lm4f232" --gcc --define=ccs --define=PART_LM4F232H5QD --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="utils/isqrt.pp" --obj_directory="utils" "C:/StellarisWare/utils/isqrt.c" 'Finished building: C:/StellarisWare/utils/isqrt.c' ' ' 'Building file: C:/StellarisWare/utils/ringbuf.c' 'Invoking: ARM Compiler' "C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/StellarisWare" --include_path="C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare/boards/ek-lm4f232" --gcc --define=ccs --define=PART_LM4F232H5QD --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="utils/ringbuf.pp" --obj_directory="utils" "C:/StellarisWare/utils/ringbuf.c" 'Finished building: C:/StellarisWare/utils/ringbuf.c' ' ' 'Building file: C:/StellarisWare/utils/scheduler.c' 'Invoking: ARM Compiler' "C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/StellarisWare" --include_path="C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare/boards/ek-lm4f232" --gcc --define=ccs --define=PART_LM4F232H5QD --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="utils/scheduler.pp" --obj_directory="utils" "C:/StellarisWare/utils/scheduler.c" 'Finished building: C:/StellarisWare/utils/scheduler.c' ' ' 'Building file: C:/StellarisWare/utils/sine.c' 'Invoking: ARM Compiler' "C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/StellarisWare" --include_path="C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare/boards/ek-lm4f232" --gcc --define=ccs --define=PART_LM4F232H5QD --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="utils/sine.pp" --obj_directory="utils" "C:/StellarisWare/utils/sine.c" 'Finished building: C:/StellarisWare/utils/sine.c' ' ' 'Building file: C:/StellarisWare/utils/uartstdio.c' 'Invoking: ARM Compiler' "C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/StellarisWare" --include_path="C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare/boards/ek-lm4f232" --gcc --define=ccs --define=PART_LM4F232H5QD --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="utils/uartstdio.pp" --obj_directory="utils" "C:/StellarisWare/utils/uartstdio.c" 'Finished building: C:/StellarisWare/utils/uartstdio.c' ' ' 'Building file: C:/StellarisWare/utils/ustdlib.c' 'Invoking: ARM Compiler' "C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/StellarisWare" --include_path="C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare/boards/ek-lm4f232" --gcc --define=ccs --define=PART_LM4F232H5QD --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="utils/ustdlib.pp" --obj_directory="utils" "C:/StellarisWare/utils/ustdlib.c" 'Finished building: C:/StellarisWare/utils/ustdlib.c' ' ' 'Building file: C:/StellarisWare/boards/ek-lm4f232/drivers/buttons.c' 'Invoking: ARM Compiler' "C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/StellarisWare" --include_path="C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare/boards/ek-lm4f232" --gcc --define=ccs --define=PART_LM4F232H5QD --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="drivers/buttons.pp" --obj_directory="drivers" "C:/StellarisWare/boards/ek-lm4f232/drivers/buttons.c" 'Finished building: C:/StellarisWare/boards/ek-lm4f232/drivers/buttons.c' ' ' 'Building file: C:/StellarisWare/boards/ek-lm4f232/drivers/cfal96x64x16.c' 'Invoking: ARM Compiler' "C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/StellarisWare" --include_path="C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare/boards/ek-lm4f232" --gcc --define=ccs --define=PART_LM4F232H5QD --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="drivers/cfal96x64x16.pp" --obj_directory="drivers" "C:/StellarisWare/boards/ek-lm4f232/drivers/cfal96x64x16.c" 'Finished building: C:/StellarisWare/boards/ek-lm4f232/drivers/cfal96x64x16.c' ' ' 'Building file: C:/StellarisWare/boards/ek-lm4f232/drivers/slidemenuwidget.c' 'Invoking: ARM Compiler' "C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="C:/StellarisWare" --include_path="C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/StellarisWare/boards/ek-lm4f232" --gcc --define=ccs --define=PART_LM4F232H5QD --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="drivers/slidemenuwidget.pp" --obj_directory="drivers" "C:/StellarisWare/boards/ek-lm4f232/drivers/slidemenuwidget.c" 'Finished building: C:/StellarisWare/boards/ek-lm4f232/drivers/slidemenuwidget.c' ' ' 'Building target: I2C - Copied from 4th Hello World.out' 'Invoking: ARM Linker' "C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --gcc --define=ccs --define=PART_LM4F232H5QD --define=TARGET_IS_BLIZZARD_RA1 --diag_warning=225 --display_error_number -z --stack_size=0x800 -m"I2C - Copied from 4th Hello World.map" --heap_size=0x800 -i"C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/lib" -i"C:/Program Files/TI/ccsv5/tools/compiler/tms470_4.9.5/include" --reread_libs --warn_sections --display_error_number --rom_model -o "I2C - Copied from 4th Hello World.out" "./drivers/slidemenuwidget.obj" "./drivers/cfal96x64x16.obj" "./drivers/buttons.obj" "./utils/ustdlib.obj" "./utils/uartstdio.obj" "./utils/sine.obj" "./utils/scheduler.obj" "./utils/ringbuf.obj" "./utils/isqrt.obj" "./utils/flash_pb.obj" "./utils/crc.obj" "./utils/cpu_usage.obj" "./utils/cmdline.obj" "./startup_ccs.obj" "./master_slave_loopback.obj" -l"libc.a" -l"C:\StellarisWare/driverlib/ccs-cm4f/Debug/driverlib-cm4f.lib" -l"C:\StellarisWare/grlib/ccs-cm4f/Debug/grlib-cm4f.lib" "../lm4f232h5qd.cmd" <Linking> 'Finished building target: I2C - Copied from 4th Hello World.out' ' ' **** Build Finished ****
Hi Peter,
The build itself is fine, and yes as you noted, the library file is used in the link. However, what should be loaded to the target is the .out from your executable project and not the .lib from the library project.
So how are you starting up the debug session? Do you click the green bug button (Debug) in the CCS Edit perspective to debug the project, or do you manually launch the debugger? If you are using the Debug button, can you make sure that the correct project is selected (highlighted) in the Project Explorer view before you click the Debug button?
If you can provide a screenshot of your Project Explorer view and explain exactly how you start the debugger, that might help clarify things better.
Hi AartiG,
I "click the green bug button (Debug) in the CCS Edit perspective to debug the project".
Given this problem has mysteriously gone away, I'm happy not to take up any more of your time on it now.
Thanks for your help and if it comes back I'll let you know.
regards
Peter