RobG 1,892 Posted July 31, 2013 Share Posted July 31, 2013 Specs: 1.3" 96x68 pixels controlled backlight 5 tact switches with RC debouncing STE2007 driver Code: 1202_booster_pack.cSTE2007.hfont_5x7.h bluehash and spirilis 2 Quote Link to post Share on other sites
kodi 16 Posted August 1, 2013 Share Posted August 1, 2013 Heh, I just received your BP and was about to ask for some docs/code for it Quote Link to post Share on other sites
RobG 1,892 Posted August 1, 2013 Author Share Posted August 1, 2013 reaper7 and spirilis 2 Quote Link to post Share on other sites
spirilis 1,265 Posted August 1, 2013 Share Posted August 1, 2013 Very cool! Sent from my Galaxy Note II with Tapatalk Quote Link to post Share on other sites
Prox 0 Posted October 13, 2013 Share Posted October 13, 2013 Sorry, I'm new to this and C. I place all of the files in the same directory and run this command under linux... $ msp430-gcc -mmcu=msp430g2452 1202_booster_pack.c -o 1202_booster_pack/tmp/ccj1qYuj.o: In function `writeToLCD':1202_booster_pack.c:(.text+0x31a): undefined reference to `__UCB0TXBUF'1202_booster_pack.c:(.text+0x320): undefined reference to `__UCB0STAT'/tmp/ccj1qYuj.o: In function `main':1202_booster_pack.c:(.init9+0x4c): undefined reference to `__UCB0CTL0'1202_booster_pack.c:(.init9+0x54): undefined reference to `__UCB0CTL0'1202_booster_pack.c:(.init9+0x58): undefined reference to `__UCB0CTL1'1202_booster_pack.c:(.init9+0x60): undefined reference to `__UCB0CTL1'1202_booster_pack.c:(.init9+0x64): undefined reference to `__UCB0BR0'1202_booster_pack.c:(.init9+0x6a): undefined reference to `__UCB0BR0'1202_booster_pack.c:(.init9+0x6e): undefined reference to `__UCB0BR1'1202_booster_pack.c:(.init9+0x72): undefined reference to `__UCB0CTL1'1202_booster_pack.c:(.init9+0x7a): undefined reference to `__UCB0CTL1'1202_booster_pack.c:(.init9+0x86): undefined reference to `_delay_cycles'collect2: ld returned 1 exit status Any idea why it's not compiling correctly? I changed the #include "msp430g2553.h" to "msp430g2452.h" and also <msp430.h> but no luck. Quote Link to post Share on other sites
RobG 1,892 Posted October 13, 2013 Author Share Posted October 13, 2013 msp430g2452 doesn't have USCI, you have to USI instead. Quote Link to post Share on other sites
Prox 0 Posted October 13, 2013 Share Posted October 13, 2013 Still getting this... $ msp430-gcc -mmcu=msp430g2553 1202_booster_pack.c -o 1202_booster_pack/tmp/ccQzqoqI.o: In function `main':1202_booster_pack.c:(.init9+0x86): undefined reference to `_delay_cycles'collect2: ld returned 1 exit status Quote Link to post Share on other sites
abecedarian 330 Posted October 13, 2013 Share Posted October 13, 2013 Shouldn't ... _delay_cycles(8000000);- be - __delay_cycles(8000000);??? Quote Link to post Share on other sites
Prox 0 Posted October 13, 2013 Share Posted October 13, 2013 Shouldn't ... _delay_cycles(8000000);- be - __delay_cycles(8000000);??? Yes, and I also get "error: __delay_cycles argument too large" when using 8000000 so I have to reduce it down to something like 80000 Quote Link to post Share on other sites
Prox 0 Posted October 21, 2013 Share Posted October 21, 2013 Got around to messing with this again. The backlight lights up but nothing showing up on the screen with code supplied. RC debouncers are not soldered on. Does the code supplied make anything display on the screen? Quote Link to post Share on other sites
RobG 1,892 Posted October 21, 2013 Author Share Posted October 21, 2013 Yes, you should see a message. BTW, is R1+C2 or R5 installed? I do test all displays before shipping, so this is most likely software issue. I have an updated version of the code, which is more reliable with certain LCDs by using hardware reset instead of RC one. 1202_booster_pack.c Quote Link to post Share on other sites
Prox 0 Posted October 21, 2013 Share Posted October 21, 2013 R5 is installed. What causes this error... "1202_booster_pack.c:191:16: error: __delay_cycles argument too large" ? I have to reduce the 0's, maybe this is effecting it? also... just make sure I'm not doing something stupid, I've removed and added the jumpers on p1.0 and p1.6 on the msp board. I'm also using the MSP-EXP430G2. Quote Link to post Share on other sites
cde 334 Posted October 21, 2013 Share Posted October 21, 2013 R5 is installed. What causes this error... "1202_booster_pack.c:191:16: error: __delay_cycles argument too large" ? I have to reduce the 0's, maybe this is effecting it? also... just make sure I'm not doing something stupid, I've removed and added the jumpers on p1.0 and p1.6 on the msp board. I'm also using the MSP-EXP430G2. According to the slau132h (MSP430 Optimizing C/C++ Compiler v 4.2 User's Guide) The delay cycles intrinsic takes an unsigned long. (32 bits, 0 to 4294967295 or 0x0 to 0xFFFFFFFF). So it should allow 8000000. Weird. Quote Link to post Share on other sites
roadrunner84 466 Posted October 21, 2013 Share Posted October 21, 2013 Whenever you pass a constant integer value that does not fit in the standard integer (signed short), strictly you should pass qualifiers: 8000000UL depicting the value is a unsigned long integer, not a default integer. cde 1 Quote Link to post Share on other sites
RobG 1,892 Posted October 21, 2013 Author Share Posted October 21, 2013 R5 is installed. OK, so that's probably it. The original code was written for boards with R1 and C2 installed. 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.