cocco 0 Posted March 21, 2014 Share Posted March 21, 2014 Hello everyone! I dont know how to add a new path in the Includes's folder when i create a new project in CCS v5. Can you help me? Thank you very much Quote Link to post Share on other sites
chicken 630 Posted March 22, 2014 Share Posted March 22, 2014 Project > settings > compiler or something along those lines ( on a phone right now Quote Link to post Share on other sites
cocco 0 Posted March 22, 2014 Author Share Posted March 22, 2014 Project > settings > compiler or something along those lines ( on a phone right now Exactly! How can i modify that? Quote Link to post Share on other sites
cocco 0 Posted March 22, 2014 Author Share Posted March 22, 2014 (edited) Ok i managed to do it 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 March 22, 2014 by cocco Quote Link to post Share on other sites
Lyon 3 Posted March 23, 2014 Share Posted March 23, 2014 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 Quote Link to post Share on other sites
cocco 0 Posted March 23, 2014 Author Share Posted March 23, 2014 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) Quote Link to post Share on other sites
Lyon 3 Posted March 23, 2014 Share Posted March 23, 2014 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 Quote Link to post Share on other sites
cocco 0 Posted March 23, 2014 Author Share Posted March 23, 2014 Hi, ........................ Thanks a lot for your precious help, it was very kind of you. Now it works. Quote Link to post Share on other sites
cocco 0 Posted April 14, 2014 Author Share Posted April 14, 2014 Hi everyone... again, I still have problem finding these kind of functs: ROM_SysCtlPeripheralEnable ROM_GPIOPinTypeI2C ROM_GPIOPinConfigure ROM_I2CMasterInitExpClk This is frustrating Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.