Jump to content
43oh

Recommended Posts

Ok i managed to do it  :D Tnx to you ofc  ;)

 

Project > Properties > Build [Debug mode] > Arm Compiler > Include Options > Add dir to #include search path

 

But i have still another problem when i build the project

 

'Building target: lcdstellarisiti.out'
'Invoking: ARM Linker'
"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --diag_warning=225 --display_error_number -z --stack_size=256 -m"lcdstellarisiti.map" --heap_size=0 -i"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/lib" -i"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/include" --reread_libs --warn_sections --display_error_number --rom_model -o "lcdstellarisiti.out"  "./startup_ccs.obj" "./main.obj" "./lcd44780_LP.obj" -l"libc.a" "../lm4f120h5qr.cmd" 
<Linking>
 
 undefined              first referenced 
  symbol                    in file      
 ---------              ---------------- 
 GPIOPinTypeGPIOOutput  ./lcd44780_LP.obj
 GPIOPinWrite           ./lcd44780_LP.obj
 SysCtlClockSet         ./main.obj       
 
>> Compilation failure
 SysCtlDelay            ./lcd44780_LP.obj
 SysCtlPeripheralEnable ./lcd44780_LP.obj
 
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "lcdstellarisiti.out" not
   built
gmake: *** [lcdstellarisiti.out] Error 1
gmake: Target `all' not remade because of errors.
 
**** Build Finished ****
 
 
Can someone help me?
Edited by cocco
Link to post
Share on other sites

Hi,

The error "undefined Symbol" means you did not provided a declaration for that function AND the definiton (body). You can do that in two ways:

1) add the driverlib.lib to your project, usually on the linker library tab.

2) prefix each (missing) function with ROM_ to be linked automaticaly to your project, since all driverlib functions reside also on-chip.

 

Take into account each solution has also some other steps to do before the mentioned step above. For instance, for solution 1) it is wise to make a separate driverlib project compiled specifically for you dedicated microcontroller.

For solution 2) some declarations only and settings.

L

Link to post
Share on other sites

Hi,

The error "undefined Symbol" means you did not provided a declaration for that function AND the definiton (body). You can do that in two ways:

1) add the driverlib.lib to your project, usually on the linker library tab.

2) prefix each (missing) function with ROM_ to be linked automaticaly to your project, since all driverlib functions reside also on-chip.

 

Take into account each solution has also some other steps to do before the mentioned step above. For instance, for solution 1) it is wise to make a separate driverlib project compiled specifically for you dedicated microcontroller.

For solution 2) some declarations only and settings.

L

 

Im sorry, can you be more specific?

I cant find any driverlib.lib file but i've already added the driverlib folder to the Includes folder. (Actually i've included the StellarisWare path)

Link to post
Share on other sites

Hi,

Go to Project | Properties | CCS Build | ARM Linker -> File Search Path and there are two half windows to be modified. In the upper part add these two lines, one by one:

"libc.a"
"${SW_ROOT}/driverlib/ccs/Debug/driverlib.lib"
These are my settings - check for yours (name and locations may differ - here are mines using Tiva 1.1)
And in the lower half add these lines, also one by one:
"${CG_TOOL_ROOT}/lib"
"${CG_TOOL_ROOT}/include"
 
Note it is wise to make a separate driverlib project and compile the whole library for your processor.
L

 

 

post-1311-14264605404314_thumb.jpg

Link to post
Share on other sites
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...