Jump to content
Sign in to follow this  
codyneslen

Energia, AIR430BoostFCC library, and MSP430G2452 Don't Play Well, USI Issues?

Recommended Posts

Hi All,

 

I am trying to use the AIR430BoostFCC library using the MSP430G2452 uC on the Launchpad. It appears that the library does not play well with this particular uC. The code will run until I call the Radio.begin() function, at which point it stops. Perhaps this is because the G2452 has a USI SPI interface and not a USCI? The MSP430G2553 seems to work correctly (with USCI), but not the G2452.

 

Previously I had a problem compiling code using the AIR430BoostFcc library, which was fixed but the problem had something to do with the defines for USI SPI. That post is here. Perhaps there are some more issues with this code?

 

Here's a simple example that will compile and upload, but locks up at the Radio.begin function. This code works with the G2553, not the G2452.

#include <SPI.h>

#include <AIR430BoostFCC.h>


#define LOCAL_ADDRESS 0x01


void setup()
{
  Serial.begin(9600);
  Serial.println("Begin Setup");
  
  //Blink to show code is running 
  pinMode(RED_LED,OUTPUT);
  digitalWrite(RED_LED,HIGH);
  delay(1000);
  digitalWrite(RED_LED,LOW);
  Serial.println("Finished Setup");
  
  //Code will lock up here
  Radio.begin(LOCAL_ADDRESS, CHANNEL_1, POWER_MAX);
  Serial.println("Radio Started");
}


void loop()
{
  //Blink to show if code is running
  digitalWrite(RED_LED,HIGH);
  delay(1000);
  digitalWrite(RED_LED,LOW);
  delay(1000);
  
}

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...