Jump to content
43oh

Nokia 1202 Booster Pack (RobG)


Recommended Posts

  • 2 months later...

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.

Link to post
Share on other sites

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.

Link to post
Share on other sites

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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...