This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5325. Section TEXT will not fit in region ROM

Other Parts Discussed in Thread: MSP430F5325

Hi,

I just switched from IAR to CCSV6 for our development on MSP430F5325 controller.

Same code compiled and linked properly on IAR but with GNU v4.9.1 or TI v4.4.4 i am getting linker error at the bottom. I found similar issue been posted , but not able to understand solution. One of the solution was to add compiler switch “-mcode-region=either” which i tried but it did not helped. I am using original msp430f5325.ld linker file and not sure what changes i have to do in side this file as well. Can some one provide clear solution for this problem?

Thanks in advance.

 

section `.text' will not fit in region `ROM'

c:/ti/ccsv6/tools/compiler/gcc_msp430_4.9.14r1_167/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld.exe: section __interrupt_vector_46 loaded at [0000ffda,0000ffdb] overlaps section .text loaded at [00006048,00015ad7]

c:/ti/ccsv6/tools/compiler/gcc_msp430_4.9.14r1_167/bin/../lib/gcc/msp430-elf/4.9.1/../../../../msp430-elf/bin/ld.exe: region `ROM' overflowed by 23384 bytes

**Attention** This is a public forum