cancel
Showing results for 
Search instead for 
Did you mean: 

Why stm32f746g-discovery have linker erro whit iar?

Mohammad Rostamian
Associate III
Posted on November 22, 2017 at 15:37

Hi, I rebuilded stm32f746g-discovery demonstration whit IAR. But it has the linker error:

Error[Lp011]: section palcement failed

Unable to allocate space section/block whit a total estimated minimum size of 0x5452bytes(max align 0x4) in....

What can I do?

 Tanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Posted on November 22, 2017 at 21:55

Different version of IAR, properly licensed?

You have 5.5MB of data, I'd assume that's supposed to go into the QSPI Flash, so place to look would be memory map being used and/or .ICF file

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

12 REPLIES 12
AvaTar
Lead
Posted on November 22, 2017 at 15:52

What can I do?

First, post the full linker error message.

The fragment seems to indicate an overflow, i.e. the application is too large.

Assuming the project settings are otherwise correct, you can try enabling optimization.

Posted on November 22, 2017 at 18:54

Too much data/code, too little space. To fix you need to make it 'less big'

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
176249CGIL2
Posted on November 22, 2017 at 19:19

I downloaded from

http://www.st.com

. why dosent work?
Posted on November 22, 2017 at 19:59

Good question.

If it's for the proper board, and with the original project setting, it is supposed to work.

May it be that ST did never ever test it with IAR-WB ?

Perhaps the present ST staff can enlighten us ...

Posted on November 22, 2017 at 21:55

Different version of IAR, properly licensed?

You have 5.5MB of data, I'd assume that's supposed to go into the QSPI Flash, so place to look would be memory map being used and/or .ICF file

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on November 22, 2017 at 22:28

Tanks alot. I change the .ICF file. It works.

But when I download the project into Mcu, there is two warrning and one erro durring intialization of debugging session.

And there is no icon picture. 0690X00000604DSQAY.jpg

What is the problem?

Posted on November 22, 2017 at 22:41

You would need download software that is aware of the QuadSPI implementation on the board (pins, chip, etc). The ST-LINK Utilities have an 'External Loader' that provides support for loading the external memories.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on November 22, 2017 at 23:07

I dont understand, what have i do?

You said that the external memory isnet programed?

When I download the project, it say that:

There were warnings while generating flash loader input. See the debuge Log window for details.

I think that I still do something worng about flashloader file?

Do you have any idea?