bubba198 2 Posted November 8, 2015 Share Posted November 8, 2015 Hi everyone, I've read the endless discussions about Energia and libraries for Arduino. Case in point here is my problem. Very simple code using a library originally written for Arduino. Energia will compile with no errors under MSP430G2 but the code doesn't work. Then I changed to Stellaris lm4f120 (I have many boards laying around), compiles with no errors as well but it works as expected? I was expecting to hit one of those "easy answers" where the library is allegedly written for Arduino hence it wouldn't work for Energia and while I am sure these are credible cases it clearly isn't the case here.I'm stumped. This isn't large program and of course this isn't a case of confused pin numbering. The SPI waveform on MSP430 just isn't right and on Stellaris it works just fine with no modification. Literally the only chage is the board selection in Energia and updating the pin labels Any suggestions as to how I could troubleshoot this? (I have tried different MSP430, it isn't the launchpad).~B Quote Link to post Share on other sites
chicken 630 Posted November 8, 2015 Share Posted November 8, 2015 Hard to tell without more details. How does it not look right? What code doesn't work? What device are you talking to? etc. First blind guess: Energia on MSP430 does not set SPI speed and it may be too fast. Quote Link to post Share on other sites
Rei Vilo 695 Posted November 8, 2015 Share Posted November 8, 2015 Keep in mind the MSP430G2553 has only 512 bytes of RAM. Arduino libraries that rely on the HAL Quote Link to post Share on other sites
bubba198 2 Posted November 8, 2015 Author Share Posted November 8, 2015 Keep in mind the MSP430G2553 has only 512 bytes of RAM. Arduino libraries that rely on the HAL 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.