codyneslen 0 Posted April 18, 2014 Share Posted April 18, 2014 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); } Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.