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.

CCS/DLP-7970ABP: sloa233 example does not compile when using MSP-EXP430FR4133 launchpad

Part Number: DLP-7970ABP
Other Parts Discussed in Thread: MSP-EXP430FR4133, TRF7970A, UNIFLASH

Tool/software: Code Composer Studio

Hi,

I am a first time user of TI products. I recently purchased TRF7970A booster pack and MSP-EXP430FR4133 launchpad. When I try to build the example code (sloa233) using Code Composer Studio, I get a build finished report and a warning that it requires compiler version TI v4.3.3 which is not present in the composer studio (so it used version 18 instead). Once the code has finished uploading, there is no display on the LCD screen of the Launchpad, and stepping through the code with the debugger indicates that the code runs into an infinite loop when trying to set the clock frequency of the MSP430 to 8MHz. The problem seems to be with the intrinsic function __delay_cycles() (sic). If this function call is commented out, the code then runs into an infinite loop wen the delay function is called later.

If I use either Code Composer Studio or Uniflash to upload the pre-built .out file, which was included in the download of sloa233.zip, then the example works as expected, with the Launchpad LCD screen displaying the heartbeat icon and the reader able to detect tags. I am using windows 10 and the current version of Code Composer Studio installed is 9.2.0.00013. Is there an updated sloa233 code that matches this version of the studio or can anyone show me how I can modify this code to work with the current versions?

Kind regards,

Steve

  • Hi Steve,

    I don't have a FR4133 board available but will try to get one and check that. I will come back to you the next days.

    Best regards,

    Helfried

  • Hi Steve,

    I have now the FR4133 board available und run into the same problem as you did.

    The solution is that the driverlib has to be replaced by the newest version. Can be found here:

    http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSP430_Driver_Library/latest/index_FDS.html

    The new diverlib has a few function names changed for the GPIO. Below a copy of the part from the file main.c with the new names:

    // Initialize Push Button S1 on FR4133

    GPIO_selectInterruptEdge(GPIO_PORT_P1, GPIO_PIN2, GPIO_HIGH_TO_LOW_TRANSITION);

    GPIO_setAsInputPinWithPullUpResistor(GPIO_PORT_P1, GPIO_PIN2);

    GPIO_clearInterrupt(GPIO_PORT_P1, GPIO_PIN2);

    GPIO_enableInterrupt(GPIO_PORT_P1, GPIO_PIN2);

    // Initialize Push Button S2 on FR4133

    GPIO_selectInterruptEdge(GPIO_PORT_P2, GPIO_PIN6, GPIO_HIGH_TO_LOW_TRANSITION);

    GPIO_setAsInputPinWithPullUpResistor(GPIO_PORT_P2, GPIO_PIN6);

    GPIO_clearInterrupt(GPIO_PORT_P2, GPIO_PIN6);

    GPIO_enableInterrupt(GPIO_PORT_P2, GPIO_PIN6);

    In addition there is a warning about the stack size which can be fixed in the project linker setting when changing the stack size from 750 to 748 to be a multiple of 4. 

    Best regards,

    Helfried

  • Hi Helfried,

    Thank you very much for taking the time to look into this for us. I am pretty sure that it is something on our side, but the recommended solution did not work. We were able to download and install the driverlib into Code Creator Studio, and were able to make the changes that you suggested to "main.c". Unfortunately, with the new driverlib installed and the suggested changes made, our version of Code Creator Studio gave an import error with the changes.

    Without the suggested code changes, the code compiles, but still does not work. In order to attempt to rule out a problem with IDE software versions, we also tried the suggested fix using Code Creater Cloud, but also with no success. Is there a way to manually check which version of driverlib is actually being used? Is it possible for us to have installed the updated driverlib, but it is not being used?

    Thank you for all you help so far,

    -Steve 

  • Hi Steve,

    to bad that you have problems with that. Lets try it a different way. I have exported my project and will put the ZIP file in this posts (hope it works).

    Please do not unzip this file. Go to "Project -> Import CCS Projects" and import this file as archive file.

    I have used CCS 9.0.1 but it should not matter that you have a newer 9.x version.

     TRF7979ABP_FRL4133_Reader.zip

    Best regards,

    Helfried

  • Hi Helfried,

    I followed your instructions and it worked perfectly. Thank you very much for taking your time, we really do appreciate it. We are looking forward to continuing with development with the Launchpad.

    Kind regards,

    -Steve