Genesisfactor 2 Posted June 2, 2012 Share Posted June 2, 2012 When i try the TimerSerial example, on my MSP430 with the 2231, or the 2211, i get this compile error D:\Projects\MSP430 Energia\hardware\msp430\libraries\TimerSerial\TimerSerial.cpp: In static member function 'static void TimerSerial::RxIsr()': D:\Projects\MSP430 Energia\hardware\msp430\libraries\TimerSerial\TimerSerial.cpp:205:16: error: 'TA0IV_TACCR1' was not declared in this scope I downloaded the source on June 1st and did not edit any h files yet. Help? Quote Link to post Share on other sites
Rickta59 589 Posted June 2, 2012 Share Posted June 2, 2012 In TimerSerial.cpp in the code just before line 205 where you get the error you might replace: #ifdef TIMER0_A1_VECTOR with #if defined(TA0IV) && defined(TA0IV_TACCR1) -rick Genesisfactor 1 Quote Link to post Share on other sites
Rickta59 589 Posted June 2, 2012 Share Posted June 2, 2012 More of an FYI. The current coding focus of Energia has been getting the msp430g2452 and msp430g2553 chips working nicely with the standard and popular libraries. The original launchpad msp430g2231 chip only has 2k of flash and 128 bytes of ram. It also doesn't have a hardware UART. You might want to consider ordering one of the newer V1.5 launchpads from the TI EStore Launchpad. The V1.5 version comes with the newer msp430g2452 and msp430g2553 chips. These chips are a better fit for the Energia framework and it only cost $4.30 with free shipping. -rick Quote Link to post Share on other sites
energia 485 Posted June 2, 2012 Share Posted June 2, 2012 This is definitely a bug and will get it fixed. To echo what Rickta59 said, the TImerSerial chews up about 1k of flash and probably half of the available RAM. It will work on a msp430g2231 but you won't have much left for the sketch itself. Quote Link to post Share on other sites
Genesisfactor 2 Posted June 2, 2012 Author Share Posted June 2, 2012 Thanks guys for the fix. Tested it and it works with the echo back, but with some errors (it didn't print "Hello world" in void setup, but all subsequent communication in the loop worked fine). I understand the reasoning, as TI has moved on and this is older gear now. I will be getting the 1.5 soon (already shipped out) and i understand the overhead issues. I mainly use it for visual diagnostics anyways . Quote Link to post Share on other sites
Genesisfactor 2 Posted June 6, 2012 Author Share Posted June 6, 2012 Now that i have both boards, thus, both MCUs. I had tried to include it as an OR statement, and it failed to compile. I made an at ELIF statement, that may not have worked either, as i get no reply from the 2553. What must i do for both MCUs to work? Also, what is necessary to do make the system compatible with other similar MCUs or MSP430s, like the F2012/2013 and the chronos. Very curious... Quote Link to post Share on other sites
Rickta59 589 Posted June 6, 2012 Share Posted June 6, 2012 Now that you have a g2553 I would stop using TimerSerial and just use HardwareSerial. It is automatically included in Energia.h and you can reference it via Serial.xxx .. where xxx are the functions. We need to deal with this better. I'll see what I can do. -rick 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.