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.

MSP430F5529 Launchpad with CC1120

Other Parts Discussed in Thread: MSP430F5529, CC1120, SIMPLICITI, CC1125

I am using CC1120 EM with MSP430F5529 Launchpad.

I have two questions: -

Q1. In SimpliciTI TI Wiki link it mention that Simpliciti stack supports MSP430F5529 Launchpad and CC1120. However, I cannot find relevant details is the release and cannot use this combo. I am stuck and do not know how to proceed if there is not going to be any support. I also searched e2e but could not find detailed answer/clarity.

Q2. I am not able to communicate to CC1120 using SPI through MSP430F5529 Launchpad (using Wired board). Can you provide some working code example for SPI communication please?

Current Issue is, MISO line behaves weirdly. Do I need to use pull up on MISO line? Is MISO line drive not enough? In a continuous data read operation on SPI MISO stays low by default and toggles when SPI clk arrives. As far as I know MISO should stay high by default and only goes low when CSn goes low. Am I correct? Again, If I connect CCdebugger to CC1120EM card, it works fine. I do not know what is going wrong and how do I fix it.

Thanks,

Abhijit

 

  • Hi

    As far as I can see, the wiki states that is supports the MSP-EXP430F5529 (as it does). It does not say anything about the C1120. The CC1120 is supported by the betas release found here: http://e2e.ti.com/support/wireless_connectivity/f/156/p/207308/734398

    With the BSP files from SimpliciTI_RF_Stack 1_x_x_5 and the beta release supporting CC1120 it should not be a very big job getting SimpliciTI up and running on MSP430F5529 0 CC1120.

    Siri

  • Hello,
    I have not got complete answer yet. I am still not able to communicate with CC1120 through MSP430F5529 launchpad. My question is as below.

    I am not able to communicate to CC1120 using SPI through MSP430F5529 Launchpad (using Wired board). Can you provide some working code example for SPI communication please?

    Current Issue is, MISO line behaves weirdly. Do I need to use pull up on MISO line? Is MISO line drive from CC1120 not enough? In my case MISO stays permanently low and does not toggle during SPI read/write operation. I need to know all important steps to put CC1120 in SPI mode.
    The same CC1120EM works fine with CCdebugger. So, I do not see any issue with CC1120 EM. Similarly, all SPI signals out from MSP430 behaves correctly. Is there any specific timing sequence must be followed?
    Please provide detailed answer and whether I am making some basic mistake.
  • Please ignore my question above. There were some setup issues I just found. MISO working fine. Please close.
    Thanks,
    Abhijit
  • Hi Siri (612307), 

    I have the same situation than the original poster, using MSP430F5529 with CC1120. I have found the Peer-to-Peer sample application for the launchpad on the  SimpliciTI_RF_Stack 1_x_x_5 but with the wrong transceiver and the same application  in the beta release supporting the CC1120 but with the wrong launchpad. So could you help explain what are the files that we could reuse from which projects in order to make them work together? or some guidelines to know what to look for in getting these two hardware to work together?

    Thanks\\

    ~Nathaly

  • What I recommend that you do is to use the CC1120 project as a starting point and then you go through the BSP files and replace the once necessary (BPS = Board support Package). These are the files that are specific to your MCU and HW.
    BR
    siri
  • Thanks Siri,

     I basically used the CC1120 MRFI files with the F5529LP bsp files. However, I haven't gotten past the MRFI_ASSERT part of the code in the mrfi_radio.c file, line 844. In debug mode I am able to go line by line, and I see the test data and address are placed in the UCB0TX buffer, but the RX only ever has a value of xFF, and I can't read any values from it (debog log shows an error when I placed a log breakpoint printing the value of readValue). 

     Any idea on what may be causing the SPI not to work? If the TX buffer seems to be working correclty, it shouldn't be a register address problem since they are both defined in the LP h file. 

    Something weird I noticed is that inside the spiRegAccess function in the mrfi_spi.c file, with an address of x002E, the addr_msb is 0, so we enter the if loop at line 251. But after the first write to the TX buffer, the next debug step takes me to the else portion! Not sure if there were some hidden steps in between, but I even tried to add breakpoints throughout the if loop and they got removed or pushed to the else section during runtime... is that a hint?

    Thanks for any feedback!

  • Also, I'm want to make sure my HW is setup correctly (F5529 LP + booster pack + CC1120 EM) but I can't find a port/pin for UCB0tx, would it use the UCA0tx/rx (P3.3, P3.4)?? These may be backwards in relation to the booster pack tx/rx, but Im not sure these are the ones used for spi, since that is configured on UCB0. Let me know, thanks!
  • For anyone interested, I found an error in the porting. In bsp_drivers.c file there is this comment:
    // CC1120 has RESET_N pin which needs to be driven high in order to get CC1120 out of hard reset.

    But the code was set for the hardware of a different board. So I made sure to check the reset pin on the adapter board for the radio and configured the matching pin on the launchpad (P2.6). SPI works now!
  • Hello,

    I am developing an application using the network of sigfox by the MSP430F5529 + boosterpack. So far I have set the MSP430 in low power consumption (LMP3), now I want to send to sleep the CC1120 module of the boosterpack by SPI registers (I'm using the demo project that provided me sigfox).

    How can I do this?
    In what part of the code (TI_SIGFOX_FCC_ccs_project) I can set the SPI?
    Do you have an example code where you do this?

    regards.
  • Hi Nathaly,

    I'm using the some setup as yours (F5529 LP + booster pack adapter + CC1120 EM) And failed to communicate with the component through SPI. Can you please provide me advise or guideline how to communicate using the above setup I really appreciate it, thanks in advance.
    (example code would be great :)

    B.Regards
    Shai Berman
  • Shai, 

    We have actually released an appnote with software that runs on the combination of CC1120/CC1125 boosterpacks + MSP430F5529 LaunchPads. The link for the appnote is below and it is linked on the main CC1120 product folder.

    Regards,
    /TA

  • Hi TA,

    Thank you for your inputs,I was able to burn the sample project successfully and I was able to connect the terminal and reach to menu via UART.
    At this point I noticed that the CC1120 was unidentified by the MSP430, I got the following message:
    Current configuration: (Device = Unknown)
    At first I thought that the component is not getting enough power so I moved the jumper at P4 into a USB power (shorting 2-4) and still the same message.
    What do you think could be the problem, I appreciate your time to advise me a solution.
    Thanks in advance

    Best regards
    Shai Berman