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.

Error with SimpiciTI project for MSP430F5969 created in CCS v6

Other Parts Discussed in Thread: SIMPLICITI, MSP430FR5969, MSP430F5438

I have created a SimpliciTI project today for MSP430F5969 Microcontroller in CCS v6, and got 37 errors, some of the error messages are as follows...


"C:/Texas Instruments/SimpliciTI-CCS-1.1.1/Components/bsp/boards/CC430EM/bsp_board.c", line 185: error #20: identifier "XT1LFOFFG" is undefined
"C:/Texas Instruments/SimpliciTI-CCS-1.1.1/Components/bsp/boards/CC430EM/bsp_board.c", line 185: error #20: identifier "DCOFFG" is undefined

Please let me know how to fix the errors.

  • Are you sure this c file includes the correct MSP430 header file with all the definitions?
    Unfortunately, your screenshot doesn't show whether you're also getting an error for UCSCTL7. (It would be really weird if not, as they are defined in the same header file)
    Either you include the wrong header file (for a different MSP) or none at all. It is also possible that bsp_board.c was intended to be included into a main.c that already has the headers included. (for exactly this reason I dislike this coding practice)
  • Jens,

    Thanks for your quick replay. I am also not sure whether I am using the correct MSP430 header files. Also I am getting the error for UCSCTL7. Please find my project screenshot to know about the include folders I have included. Please also let me know which header files I need to include and where can I find the same. Please let me know if more details are required to know on the problem.

    Thanks,

    Raghu evisetti

  • Dear Jens,

    After adding the correct include path for the project I am getting 57 errors but those are different from the previous errors list.

    Can you please let me know what is to be corrected from my side?

    Please find attached the screenshot of the errors list.

    Thanks,

    Raghu Devisetti

  • Raghu,

    The MSP430FR5969 device does not have a UCS module, it has a CS module - this is why you get an error for UCSCTL7 because this register does not exist on the FR5xx devices. Therefore it doesn't look like this code was written for this device, but rather for some F5xx/6xx part not FR5xx/6xx. Where did the code come from? Perhaps you may want to post in the SimpliciTI forum to see if they have any examples for MSP430FR5969, but I'm not currently aware of any: http://e2e.ti.com/support/wireless_connectivity/f/156 If there aren't any, this is definitely going to be a bigger porting effort where you'll have to understand the function of each part of the code and then change it to do the same function in some of the different modules of the FR5xx (like CS instead of UCS). You may want to see the F5xx/6xx to FR59xx migration guide: www.ti.com/lit/pdf/slaa555

    Regards,

    Katie

  •  Dear Katie,

    I don't think the errors are because of the MSP430FR5969 micro-controller selection, the errors are generated even if I select the target as MSP430F5438 also.

    Please let me know what could be the cause.

    Where can I find the correct steps to create a project to compile without errors.

    Thanks

    Raghu Devisetti

  • Hi Raghu,

    Sorry for the delayed response - I was out of the office. The errors in your last post show lines of code for BCSCTL1 - this register is only on 2xx parts, not on FR5xx or F5xx parts. I'm going to guess maybe this code is supposed to use #defines or project settings or something to include only the correct code for a particular device, and so maybe your project isn't including/excluding the right code files. However, I am not familiar with SimpliciTI stack as this is developed by the wireless teams, so I think you will get much faster help about the right project settings needed to include the correct files for a particular part if you post in the SimplicitTI forum I linked before: They should be able to help tell you how to create your project correctly hopefully (you may want to include the steps you used to create the project or a zip file with the project itself in it as well when you post there).

    Regards,

    Katie

**Attention** This is a public forum