spirilis 1,265 Posted October 24, 2014 Author Share Posted October 24, 2014 Brand new to using the msp430...Spirilis, when I try to run the TX example code, I get an error reading "fatal error: avr/pgmspace.h: No such file or directory". It seems the SPI library is attempting to call this file but isn't finding anything. In fact, any time I try to use SPI.h, even outside of this example, nothing runs...Do you know a way around this? Thanks! That's definitely not my library doing it. This is with Energia right? Sent from my Galaxy Note II with Tapatalk 4 Quote Link to post Share on other sites
dpcinci 0 Posted October 24, 2014 Share Posted October 24, 2014 Yes, this is with Energia, and I have the board set to MSP430G2231 (my chip) under Tools-->Board-->MSP430G2231 It doesn't seem like your library, but SPI.h. I was just wondering if this is an issue any of you guys have dealt with before while trying to use the nRF. Quote Link to post Share on other sites
spirilis 1,265 Posted October 24, 2014 Author Share Posted October 24, 2014 Yes, this is with Energia, and I have the board set to MSP430G2231 (my chip) under Tools-->Board-->MSP430G2231 It doesn't seem like your library, but SPI.h. I was just wondering if this is an issue any of you guys have dealt with before while trying to use the nRF. Have you installed some sort of alternate SPI library? There are no instances within Energia's codebase of "avr/pgmspace.h" anywhere (beyond some examples that had such a line commented out). Quote Link to post Share on other sites
dpcinci 0 Posted October 24, 2014 Share Posted October 24, 2014 Thanks - I think I did actually have another SPI.h in my directory...now I'm getting an error that I think means the library is to big to fit on the g2231, I will probably try switching to the g2553. Quote Link to post Share on other sites
spirilis 1,265 Posted October 24, 2014 Author Share Posted October 24, 2014 That's better - Yeah to be quite honest I don't think Energia is useful for the G2231 et al due to its size. Sent from my Galaxy Note II with Tapatalk 4 Quote Link to post Share on other sites
bobnova 59 Posted October 25, 2014 Share Posted October 25, 2014 I wasn't able to get a NRF24 working with a MSP430G2452, let alone a 2231. Not really sure what the 2452's problem was, easiest guess is RAM of course, as I don't know how much the library consumes. I did a quick count and it seemed like enough, and went through the library a bit looking for references to HW at the 2452 doesn't have, but never really found much. Doesn't surprise me much that it won't fit a 2231, those things are tiny as I recall. As a note, when the library says that the NRF24 is in low power mode it really means it. I have one outside right now running off a AA Power Board from Jeelabs (boosts >0.9v to 3.3v), connected to a 2553. It checks temp and light and battery level then sends out a packet containing that plus a count plus an ID number every ten seconds and sleeps the rest of the time. I hacked things up a bit to allow LPM3 in energia and set a timer running to wake it back up every ten seconds. I put it outside in a plastic bag (rainy season) with an alkaline AA I found lying around that had ~1.32v unloaded. After about eight weeks or so (more?) it's still running and the battery has gone down by about 30mV according to the node. Very happy with the library am I. Automate 1 Quote Link to post Share on other sites
roby92100 2 Posted November 23, 2014 Share Posted November 23, 2014 Hi peoples!...I'm new on the world of msp...I'm used to play with arduino, but now i would like to do something programming microcontroller with real C code. My topic is to provide communication between two msp not using energia but Code Composer Studio (this because i want to learn it). But before this i would like to try some sketch with energia! In this moment i have just one launchpad with a msp430g2553, and i want to use ad arduino uno in the other side. For this last one i used two libraries: "Mirf" and "nrf24". Using an example of Spirilis library for the MSP, I'm not able to fix any type of communication: neither is able to recognize the other!!! Some peoples could help me? Quote Link to post Share on other sites
rajvish 0 Posted February 14, 2015 Share Posted February 14, 2015 Hello together, I want to use my nRF24L01 module attached with MSP430G2553 to both send and recieve at same time. Basically i want to send out some information from the node periodically and also want to listen is there any command from the master node( nRF24+rPi ). Does this library support simultaneous transmit-recieve? Quote Link to post Share on other sites
spirilis 1,265 Posted February 14, 2015 Author Share Posted February 14, 2015 Hello together, I want to use my nRF24L01 module attached with MSP430G2553 to both send and recieve at same time. Basically i want to send out some information from the node periodically and also want to listen is there any command from the master node( nRF24+rPi ). Does this library support simultaneous transmit-recieve? Yes, although I'd describe it as "quickly switches back and forth between RX and TX" but it does that. Can't RX and TX simultaneously obviously since the transceiver can't physically do both at once (and only 1 channel can be used at a time). Sent from my Galaxy Note II with Tapatalk 4 Quote Link to post Share on other sites
rajvish 0 Posted February 14, 2015 Share Posted February 14, 2015 i tried something like this inside my loop() radio.disableRX(); sendStatus(); radio.enableRX(); delay( 1000 ); if( radio.available() { // process } but now i'm not getting transmission from my launchpad Quote Link to post Share on other sites
spirilis 1,265 Posted February 14, 2015 Author Share Posted February 14, 2015 You don't need to disableRX and enableRX. The library will take care of that. Sent from my Galaxy Note II with Tapatalk 4 Quote Link to post Share on other sites
Servtes 0 Posted March 2, 2015 Share Posted March 2, 2015 Hi, I need some help, i have the lastest verision of energia IDE, the patch is present by default, y have a problem with MSP430 2553 and 2452 launchpad, the RF24 shows me "NO TRANCEIVER PRESENT" msg. Connections I have used: SCLK P1.5 CE P2.0 CSN P2.1 IRQ P2.2 MISO P1.6 MOSI P1.7 I test the tranceiver in my stellaris launchpad and have no problem,... Quote Link to post Share on other sites
spirilis 1,265 Posted March 2, 2015 Author Share Posted March 2, 2015 You set the pins appropriately in the sketch? Double-check that and also post the line here. Sent from my Galaxy Note II with Tapatalk 4 Quote Link to post Share on other sites
Servtes 0 Posted March 2, 2015 Share Posted March 2, 2015 Hi, I check all pins an connections, My test on MSP430 are with nrf24TX_demo example icluded Enrf24 radio(P2_0, P2_1, P2_2); // P2.0=CE, P2.1=CSN, P2.2=IRQ My problem is.... I have MSP430G2553 and MSP430G2452, if I select tools>boards> msp430g2553 and i have the 2553 installed, the serial monitor doesn Quote Link to post Share on other sites
spirilis 1,265 Posted March 2, 2015 Author Share Posted March 2, 2015 Ohh, ok so you need to select the right board for your chip, the G2452 and G2553 have their SPI MOSI/MISO pins backwards between one another just so you know. Make sure your UART jumpers are arranged for "HW UART" when using the G2553. It will need to be the other way, "SW UART" when using the G2452. Sent from my Galaxy Note II with Tapatalk 4 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.