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.
I am trying to compile a new project for LM4F111E5QR .
I get the following error .
**** Build of configuration Debug for project avl_pro_mini ****
D:\ccs5.2.1\ccsv5\utils\bin\gmake -k all
'Building file: ../avl.c'
'Invoking: ARM Compiler'
"D:/ccs5.2.1/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="E:/work/transafe/AVL/ccs5/drivers/inc" --include_path="D:/ccs5.2.1/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="E:/work/transafe/AVL/ccs5/drivers/driverlib" --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="avl.pp" "../avl.c"
>> ERROR: FPV4SPD16 is only supported on Cortex-M4
gmake: *** [avl.obj] Error 1
'Building file: ../main.c'
'Invoking: ARM Compiler'
"D:/ccs5.2.1/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --include_path="E:/work/transafe/AVL/ccs5/drivers/inc" --include_path="D:/ccs5.2.1/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="E:/work/transafe/AVL/ccs5/drivers/driverlib" --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
>> ERROR: FPV4SPD16 is only supported on Cortex-M4
gmake: *** [main.obj] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
Please Advise.
Ephraim Oved
ephraim oved said:>> ERROR: FPV4SPD16 is only supported on Cortex-M4
As the error message states the --float_support=FPv4SPD16 option is only supported with Cortex-M4. In your current set of options, you have "-mv4" which is not the same as "-mv7M4". -mv7M4 is what you need for CortexM4 devices.
When creating a new project in CCS, if you select the Device Variant as "Stellaris LM4F111E5QR", then the correct option will be automatically populated. If you selected a different device variant, it may not have picked it up, but you can set it manually by going to Project Properties->Build->TMS470 Compiler->Processor Options, and under "Target Processor version" select 7M4.
3718.avl.zipHi.
Following this answer , I changed the following switches as follows
1. -mv=7M4
2. --code_state =16
3. --float_support =FPv4SPD16
4. --abi = ti_arm9_abi
Now I get the following error
**** Build of configuration Debug for project avl ****
D:\ccs5.2.1\ccsv5\utils\bin\gmake -k all
'Building file: ../avl.c'
'Invoking: ARM Compiler'
"D:/ccs5.2.1/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=ti_arm9_abi -me -O0 -g --include_path="D:/ccs5.2.1/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="E:/work/transafe/AVL/ccs5/drivers/driverlib" --include_path="E:/work/transafe/AVL/ccs5/drivers/inc" --include_path="E:/work/transafe/AVL/ccs5/drivers/lib" --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="avl.pp" "../avl.c"
>> ERROR: VFP floating point support requires --abi=eabi
gmake: *** [avl.obj] Error 1
'Building file: ../main.c'
'Invoking: ARM Compiler'
"D:/ccs5.2.1/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=ti_arm9_abi -me -O0 -g --include_path="D:/ccs5.2.1/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="E:/work/transafe/AVL/ccs5/drivers/driverlib" --include_path="E:/work/transafe/AVL/ccs5/drivers/inc" --include_path="E:/work/transafe/AVL/ccs5/drivers/lib" --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
>> ERROR: VFP floating point support requires --abi=eabi
gmake: *** [main.obj] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
Please Advise
Ephraim Oved
ephraim oved said:>> ERROR: VFP floating point support requires --abi=eabi
As stated in the message, set the --abi option to eabi, not ti_arm9_abi.
As I mentioned earlier, when creating a new project if you select the device variant as LM4F111E5QR, these options will automatically be set correctly for you. You might want to create a new project with this device selected rather than worrying about manually setting these options.
4075.error.zip7026.avlx.zipHi.
Thanks for your patient.
I started all over again , Now the copiler show a lot of error.
All of the error points to the file pin_map.h , However the file is referenced ,
I think that the "pointer" of the LM4F111E5QR is wrong.
Attached 2 zip files.
Ephraim Oved
Please check that all of your compiler include paths are correct and are set to all the folders from where include files are being referenced. In addition, to avoid linking errors, you would need to link in the driverlib from Stellarisware.
I would suggest importing one of the examples for the Stellaris Launchpad into your workspace and using that as a reference. Examples for Launchpad are included in the latest Stellarisware. Please take a close look at the paths set under Compiler->Include Options and under Linker->File Search Path, and model your program accordingly.