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.

MSP430F5438A: How to include driverlib into my existing CCS project?

Part Number: MSP430F5438A
Other Parts Discussed in Thread: MSP430WARE

Hello,

I have Smart RF Trx Evaluation Board Rev 1.7.  This board has MSP430F5438A micro controller MCU.

I have Code Composer Software CCS 11.1.0 Version 

I have created CCS project as shown below:

I am getting following link errors:

There are some unresolved link errors in this program as shown below.

 

undefined                            

 symbol                              

---------                            

GPIO_clearInterrupt                  

GPIO_disableInterrupt                

GPIO_enableInterrupt                 

GPIO_getInputPinValue                 

GPIO_selectInterruptEdge             

GPIO_setAsInputPin                   

GPIO_setAsInputPinWithPullDownResistor

GPIO_setAsInputPinWithPullUpResistor 

GPIO_setAsOutputPin                  

GPIO_setOutputHighOnPin              

GPIO_setOutputLowOnPin               

GPIO_toggleOutputOnPin               

Timer_B_clear                        

Timer_B_clearTimerInterrupt          

Timer_B_initUpMode                   

WDT_A_hold       

Please let us know how we can resolve these unresolved symbols?

I looked at MSP430F5xx_6xx_DriverLib_Users_Guide-2_91_13_01.pdf pages 23, 24 and 25 etc.

After right clicking on MSP430_F5438A_Driver_error CCS project,

In the Source drop down menu, I have only Format sub menu. I do not have Apply Project Template ... option in my project as shown on below screen capture of my CCS project:

A colleague of mine in another city of my company, has following project, including the driverlib folder:

I do not have driverlib folder as shown in my CCS project:

In my CCS project, how to have Source -> Apply Project Template … menu option?

And how to have driverlib folder in my CCS project please?

 

Thanks and best regards,

  • Hi Swamy Jagannatham ,

    If your colleague has a working version. I would ask to see their build output console and compare it against yours to see what the difference is.

    Regards,

    Evan

  • Hi Evan,

    Thank you very much for the info.

    I will compare and let you know.

    Thanks,

    SSJ

  • Hi Evan,

    I did compare my project build output with my colleague's build output and I know where the differences are. However, I am not clear about how to fix the differences.

    I have emailed the two build output txt files to   ticsc@service-now.com email.

    If possible, please see the two files and please let me know of some specific steps I can do to fix the differences and be able to build my project without errors.

    Thanks and best regards,

  • Please attach the two files to your post as I don't have access to that email address.

    Thanks,

    Evan

  • SmartMot_RBSB_Interface_v1pt1_copy_Build Output_01a.txt

    SSJ_build_console_output_01b.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    **** Build of configuration Debug for project MSP430_F5438A_Driver_error ****
    "C:\\ti\\ccs1110\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
    Building file: "../main.c"
    Invoking: MSP430 Compiler
    "C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --include_path="C:/ti/ccs1110/ccs/ccs_base/msp430/include" --include_path="C:/ti/msp/MSP430Ware_3_80_14_01/driverlib/driverlib/MSP430F5xx_6xx" --include_path="C:/ti/msp/MSP430Ware_3_80_14_01/driverlib/driverlib/MSP430F5xx_6xx/inc" --include_path="C:/Antenna_Luneburg_Lens/TI_Driver_error_WS/MSP430_F5438A_Driver_error" --include_path="C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/include" --advice:power=all --define=__MSP430F5438A__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"
    "../main.c", line 475: warning #225-D: function "Latch_Enable" declared implicitly
    "../main.c", line 94: warning #179-D: variable "atten_bit" was declared but never referenced
    "../main.c", line 100: warning #179-D: variable "tmp_in" was declared but never referenced
    "../main.c", line 127: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "../main.c", line 132: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "../main.c", line 144: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "../main.c", line 196: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "../main.c", line 204: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier
    "../main.c", line 225: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
    "../main.c", line 226: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
    "../main.c", line 227: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
    "../main.c", line 228: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • 1212.SSJ_build_console_output_01b.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    **** Build of configuration Debug for project MSP430_F5438A_Driver_error ****
    "C:\\ti\\ccs1110\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
    Building file: "../main.c"
    Invoking: MSP430 Compiler
    "C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --include_path="C:/ti/ccs1110/ccs/ccs_base/msp430/include" --include_path="C:/ti/msp/MSP430Ware_3_80_14_01/driverlib/driverlib/MSP430F5xx_6xx" --include_path="C:/ti/msp/MSP430Ware_3_80_14_01/driverlib/driverlib/MSP430F5xx_6xx/inc" --include_path="C:/Antenna_Luneburg_Lens/TI_Driver_error_WS/MSP430_F5438A_Driver_error" --include_path="C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-msp430_21.6.0.LTS/include" --advice:power=all --define=__MSP430F5438A__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"
    "../main.c", line 475: warning #225-D: function "Latch_Enable" declared implicitly
    "../main.c", line 94: warning #179-D: variable "atten_bit" was declared but never referenced
    "../main.c", line 100: warning #179-D: variable "tmp_in" was declared but never referenced
    "../main.c", line 127: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "../main.c", line 132: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "../main.c", line 144: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "../main.c", line 196: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
    "../main.c", line 204: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier
    "../main.c", line 225: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
    "../main.c", line 226: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
    "../main.c", line 227: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
    "../main.c", line 228: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • I am not sure if I have downloaded the two files correctly or not.

    Please let me know if I need to re-upload any of the two files.

    Thanks

  • Following compact project explorer of my colleague:

  • Hi Evan,

    Any information to fix these link errors please?

    Thanks

  • Hi Evan,

    I have the build configuration as requested. I sent it to you via email.

    Regards,

    Marvin

  • Thanks Marvin

  • Hi Swamy Jagannatham,

    I think the problem is coming from the fact that you don't have the correct driverlib assets copied in your project. Have you installed MSPWare (https://www.ti.com/tool/MSPWARE)?

    Follow these steps:

    1. Import a driverlib example into CCS (Project > Import CCS Projects > Browser to C:\ti\msp430ware_3_80_14_01\driverlib\examples\MSP430F5xx_6xx\adc12_a or your installation direcotry

    2. Copy the "driverlib" directory fron the adc12_a project into your project

    3. Clean and build you project

    I was able to convert a non-driverlib project to a driverlib project following those steps. I will also file a ticket with our team to find out why the steps described in the PDF didn't work.

    Evan

  • Hi Evan,

    Thank you very much for the steps above.

    I am working to follow the steps. My colleague and  I have difficulty in using the steps in my CCS.

    At present my colleague and I are doing some steps to see if we will be successfully build the project.

    I will you know if we can resolve the difficulties. 

    Thanks and best regards,

    SSJ

  • Hi Evan,

    Is it possible for us to connect on-line, so I can share my screen while I create and build my project, so that you can see my screen and correct my steps, please?

    Thanks,

    SSJ

  • Hi Swamy Jagannatham,

    Apologies, but I'm only able to provide support via the forum at this time. Please help me understand the following:

    1. Do you have MSPWare installed? If not please install from here https://www.ti.com/tool/MSPWARE
    2. Are you able to import and build the adc12_a project using steps described above? If not then we need to figure out what is wrong with your CCS/MSPWare installation.
    3. Please described the steps you are taking to create and build your project

    Regards,

    Evan

  • Hi Evan,

    I have installed MSPWare and CCS on a new laptop. Created CCS project and captured screen of each step and saved to an rtf (Microsoft Wordpad) file.

    It is huge 44 MB. So I could not email the huge file. I split it into ten smaller rtf files and emailed to Marvin (Tech Support) in ten emails.

    Hopefully Marvin will email the 10 files to you soon.

    Is there a way to attach Wordpad (rtf) or MS Word (.doc) file to this forum please?

    Thanks and best regards,

    SSJ

  • Good morning Evan,

    Sorry for ten posts. Please look at the steps and give detailed steps so that I create the project without build errors.

    Thanks and best regards,

    SSJ

  • Hi Swamy Jagannatham,

    I read through your steps. I didn't see you ever copy the driverlib into your project. If you don't do this CCS wont build the driverlib c assets and the linker will fail. Please make sure you follow step 2 in my post above which I've quoted below. The only reason I had you follow step 1 was so you had an easy place to copy the driverlib folder from.

    1. Import a driverlib example into CCS (Project > Import CCS Projects > Browser to C:\ti\msp430ware_3_80_14_01\driverlib\examples\MSP430F5xx_6xx\adc12_a or your installation direcotry

    2. Copy the "driverlib" directory fron the adc12_a project into your project

    3. Clean and build you project

    Your project should have a folder called "driverlib" in it, see my screenshot below:

    I hope this resolves your issue.

    Regards,

    Evan

  • You have nice clean project folder structure.

    How to get that in my project is my difficulty.

    I need detailed images of your steps 1 and 2 please.

    Can you paste here these images of your steps 1 and 2 please?

    Thanks

  • Please show me the images of your menu selections, folders sub folders, their selection dialog boxes etc

  • Can you please expand you Drivlib folder in the project and show its image capture?

    Thanks

  • It is hard to capture steps 1 and 2 in a screenshot but I did my best below:

    Here is a screenshot of the contents of driverlib:

    Here is a screenshot of my project properties include options:

  • Many, many thanks, Evan.

    I have built the project successfully.

    Thanks again for your help.

  • Glad to hear that!

    Regards,

    Evan

**Attention** This is a public forum