Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

Help me port energia to msp430g2274

$
0
0

UPDATE: i accidently wrote msp430g2274 instead of msp430f2274 in the title of thread.I tried to change title by editing it using full editor but i can't.It gives me some error that thread key is not matched and it signs out.

Hey guys,
 
I  first changed boards.txt file under /hardware/msp430 by adding following code

lpmsp430fr5739.name=msp430f2274
lpmsp430fr5739.upload.protocol=rf2500
lpmsp430fr5739.upload.maximum_size=32768
lpmsp430fr5739.build.mcu=msp430f2274
lpmsp430fr5739.build.f_cpu=16000000L
lpmsp430fr5739.build.core=msp430
lpmsp430fr5739.build.variant=msp430f2274

and also added "pins_energia_.h" which is simply a copy of launchpad's "pins_energia.h" in folder /hardware/msp430/variants/msp430f2274.

for now i've not just added pin description of msp430f2274.i am right now just testing whether the code of g2553 can compile or not.when i compile the code it gives me follo\wing error:

\energia-0101E0009\hardware\msp430\cores\msp430\twi.c: In function 'twi_init':
\energia-0101E0009\hardware\msp430\cores\msp430\twi.c:122:5: error: 'P1SEL2' undeclared (first use in this function)
\energia-0101E0009\hardware\msp430\cores\msp430\twi.c:122:5: note: each undeclared identifier is reported only once for each function it appears in

But when i change this line in boards.txt:

lpmsp430fr5739.build.mcu=msp430f2274

to

lpmsp430fr5739.build.mcu=msp430g2553

It successfully compiles.So plz tell me wht m i doing wrong here.?


Viewing all articles
Browse latest Browse all 2077

Trending Articles