EmbeddedRelated.com
Forums

compiling code for the MSP430F427 with gcc

Started by alan_ball007 August 8, 2007
Dear All,

I've written code for the MSP430F427 in C with both the IAR compiler
and Rowley Crossworks. The code of the same program, generated by
both compilers, fits and works similarly on both chips.

I'm now trying to recompile the same code with msp430gcc.
Unfortunately whenever I try to build my code, I get the following
error messages:
-address 0x6b8 of Flasher.elf section .bss is not within region data
-region data is full (flasher.elf section .data)

What do the above messages mean. I've tried to set the optimisation
flag, set the flag to remove unused code.

Is there some other flag that I've to use to get my code to compile?
Otherwise, how can I make gcc output the listing of the program, so
that I can see how much of the chip memory is actually used?

Thanks in advance for your help,

Alan

Beginning Microcontrollers with the MSP430

Hi,

> I've written code for the MSP430F427 in C with both the IAR compiler
> and Rowley Crossworks. The code of the same program, generated by
> both compilers, fits and works similarly on both chips.

Similar, but not identical? ;-)

> I'm now trying to recompile the same code with msp430gcc.
> Unfortunately whenever I try to build my code, I get the following
> error messages:
> -address 0x6b8 of Flasher.elf section .bss is not within region data
> -region data is full (flasher.elf section .data)

The 427 has 1K of RAM starting at 0x200, so its end address is 0x5ff.
You've got too much read/write data placed in RAM that you've linked into
your app.

You can probably use the binutils "size" or "objdump" utility to total up
your section sizes. They're probably named something different with
"msp430" in the mix somewhere.

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors
Hi Paul,

Thank you for your comments. I'll try to make a few adjustments to my code.

Regards,

Alan
----- Original Message ----
From: Paul Curtis
To: m...
Sent: Wednesday, 8 August, 2007 4:59:28 PM
Subject: RE: [msp430] compiling code for the MSP430F427 with gcc

Hi,

> I've written code for the MSP430F427 in C with both the IAR compiler
> and Rowley Crossworks. The code of the same program, generated by
> both compilers, fits and works similarly on both chips.

Similar, but not identical? ;-)

> I'm now trying to recompile the same code with msp430gcc.
> Unfortunately whenever I try to build my code, I get the following
> error messages:
> -address 0x6b8 of Flasher.elf section .bss is not within region data
> -region data is full (flasher.elf section .data)

The 427 has 1K of RAM starting at 0x200, so its end address is 0x5ff.
You've got too much read/write data placed in RAM that you've linked into
your app.

You can probably use the binutils "size" or "objdump" utility to total up
your section sizes. They're probably named something different with
"msp430" in the mix somewhere.

--
Paul Curtis, Rowley Associates Ltd http://www.rowley. co.uk
CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors

___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/