Jump to content

codyneslen

Members
  • Content Count

    6
  • Joined

  • Last visited

  1. codyneslen

    MSPFlash.h only prints

    Adding #include "msp430.h" to the top of the file worked. I did not try to include the defined flash macro. Thanks for the help! -Cody
  2. codyneslen

    MSPFlash.h only prints

    Hi All, I am using Energia 0101E0012, MSP430G2553, Launchpad G2 Rev 1.4, on a mac. When I run the example MspFlash program, it appears like I erase and write to flash correctly, but when I try to read the "Hello World" written into flash, the only thing that prints out is
  3. 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); }
  4. codyneslen

    Energia Example WirelessMonitorSensor wont compile

    That did the trick, thanks! Also, I discovered that you must include SPI.h before AIR430BoostFCC.h or it throws the compile error I showed in my hello world program above. When using the sketch/import buttons, the AIR430BoostFCC.h is included before SPI.h and gives the error. I am sure you could explain why this happens (I have not investigated it), but I thought I would let you all know! The correct include order is: #include <SPI.h> #include <AIR430BoostFCC.h> Thanks again!
  5. Hi Everyone! I am trying to use the AIR430 Booster pack, MSP430G2452 uC and programming it with Energia 0101E0012 on a Mac. If I simply try to compile the examples given in energia (for example, WirelessMonitorSensor), I get a compile error as follows: /Applications/Energia.app/Contents/Resources/Java/hardware/msp430/libraries/AIR430BoostUSAFCC/utility/Platform.cpp: In function 'void A110x2500SpiRead(unsigned char, unsigned char*, unsigned char)': /Applications/Energia.app/Contents/Resources/Java/hardware/msp430/libraries/AIR430BoostUSAFCC/utility/Platform.cpp:84:28: error: 'SPIMISO_SET_MODE' was not declared in this scope /Applications/Energia.app/Contents/Resources/Java/hardware/msp430/libraries/AIR430BoostUSAFCC/utility/Platform.cpp: In function 'void A110x2500SpiWrite(unsigned char, const unsigned char*, unsigned char)': /Applications/Energia.app/Contents/Resources/Java/hardware/msp430/libraries/AIR430BoostUSAFCC/utility/Platform.cpp:114:28: error: 'SPIMISO_SET_MODE' was not declared in this scope If I write my own program that just loads the AIR430BoosFCC.h and SPI.h headers (using the Sketch/Import Library.../AIRBoostUSAFCC), I get a different error: In file included from /Applications/Energia.app/Contents/Resources/Java/hardware/msp430/libraries/AIR430BoostUSAFCC/AIR430BoostFCC.h:29:0, from test.ino:1: /Applications/Energia.app/Contents/Resources/Java/hardware/msp430/libraries/AIR430BoostUSAFCC/utility/A110x2500Radio.h:109:10: error: 'boolean' does not name a type The code to generate this error is: #include <AIR430BoostFCC.h> #include <SPI.h> void setup() { pinMode(RED_LED,INPUT); Serial.begin(9600); } void loop() { Serial.println("Hello World"); delay(1000); } Any ideas how to get this working? Thanks!
  6. codyneslen

    Hi from SD!

    Hola de San Diego!
×