cancel
Showing results for 
Search instead for 
Did you mean: 

Cube Project with STemwin generates linker error L6406E

Osto
Senior
Posted on December 30, 2015 at 14:24

Hi,

I genetrate a new cube project of STM32F746 discovery and let Cube activate all peripheral. No RTOS, Keil V5, generate files. Then I add the STemwin files and library to the project and compile.

Everything is fine. Then I add GUI_Init() to the main and the next link gives 30 times following message:

Error L6406E: No space in execution regions with .ANY selector matching main.o (.bss)

the name of main.o changes from line to line and includes a lot of functions which was used before adding call to GUI_Init().

At the end of linking I get error message L6407E: sections of aggregate size 0x200e6c bytes could not fit into .ANY selectors.

But there is enough space in all sections.  Even when I increase RAM and ROM, there is no change at all.

Need your help please.

Regards,

Osto
3 REPLIES 3
Posted on December 30, 2015 at 15:44

Is this project using a scatter file?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Osto
Senior
Posted on December 30, 2015 at 16:13

There is a standard scatter file which is produced by compiler and is the same as a working project (Hello World example of STemwin).

Osto
Senior
Posted on December 30, 2015 at 16:19

This is the scatter file:

; *************************************************************

; *** Scatter-Loading Description File generated by uVision ***

; *************************************************************

LR_IROM1 0x08000000 0x00F00000  {    ; load region size_region

  ER_IROM1 0x08000000 0x00F00000  {  ; load address = execution address

   *.o (RESET, +First)

   *(InRoot$$Sections)

   .ANY (+RO)

  }

  RW_IRAM1 0x20000000 0x00050000  {  ; RW data

   .ANY (+RW +ZI)

  }

}

Regards