1.7k views
in System Integration by
Hello,

I'm trying to get started with the example project for IAR which is provided by the creators of embedded wizard, but when I tried to run the GUI "Hello World" I got an error at every include file.

This was easy to fix by just telling IAR where it could find the certain files, but when it tries to link the files it gives the following error:

 Error[Lp011]: section placement failed
          unable to allocate space for sections/blocks with a total estimated minimum size of 0x3'13b7 bytes (max align 0x4) in <[0x0-0x1'ffff]> (total uncommitted space 0x1'fc00).

 

Does anybody have any idea how i could run the program with IAR?

With kind regards,

Luc

1 Answer

0 votes
by
 
Best answer
Hello Luc,

first of all, please try to build the example 'Hello World' as described with the GCC toolchain. This ensures that the installation is correctly done.

Unfortunately you did not mention, which Target (which Build Environment) you are using and which version of the IAR compiler you are using.

If you are using a supported version of IAR, then you can follow exactly the description concerning the IAR usage within the Getting Started document. There is no need to "fix" something.

If you still have the problem, please try to provide some more details.

Best regards,

Manfred.
by
Hello Manfred,

I tried building the example with the GCC toolchain and this works. All the examples worked correctly while using the GCC.

I followed the getting started steps a few times but every time I get the same results.

The files which are generated look like they are correct. I get the application and the correct Embedded Wizard Platform Package.

 

When I openend the "Project.map" file and looked at the size of the project I saw the following things:

  148 440 bytes of readonly  code memory
   54 231 bytes of readonly  data memory
    9 411 bytes of readwrite data memory

Is it correct that the example needs this much memory?

 

Embedded Wizard version 9.20

IAR embedded Workbench version 8.30.1

Target: MIMXRT1050-EVK

 

With kind regards,

Luc
by
Hi Luc,

thanks for the additional information. The reported memory sizes seems to be o.k. - 148 kByte code for GUI application + Platform Package + FreeRTOS + BSP + Drivers...

This means, you were able to create a binary with IAR?

What is the remaining problem?

Best regards,

Manfred.
by
Hello Manfred,

IAR doesn't generate a bin file. I guess it has something to do with the error i'm getting. It keeps saying that the section placement failed.

With kind regards,

Luc
by
Hi Luc,

just a short question: Is your IAR Compiler a Full License or an Evaluation Version?

As far as I know there are some code size limitations (???) in case of a trial version.

Best regards,

Manfred.
by
Hello Manfred,

The IAR compiler is a Full License.

At the license manager of IAR it says that there is no size limit for generated libraries, but this kinda contradicts the error.

With kind regards,

Luc
by
Hello Manfred,

Can the GUI only be tested when downloaded to flash?

because when I downloaded it to flash the error didn't appear.

With kind regards,

Luc
by
Hello Luc,

this confuses me now...

This means, you did not use the IAR project that we provide within the Build Environment, correct? Because this is configured to store the code within flash memory.

Did you create your own IAR project?

In principle the code execution from RAM should work - but you need the proper linker script for that.

Best regards,

Manfred.
by

Hello Manfred,

I used the code provided by you, but when I tried to run that I started with errors that IAR couldn't find the header files. so after the preprocessor knew what folders he needed to search in everything worked till it got to the linker, but when i added a different linker so that he downloads the project to flash it worked.

Is it possible that we are working with different versions of IAR, because the first time I tried to open the workspace I got a warning of some sort and IAR made a backup of the project.

With kind regards,

Luc

by
Hi Luc - thanks for the information.

We tested it with IAR Embedded Workbench 8.32.3, IAR C/C++ Compiler V8.32.3.193/W32 for ARM. Unfortunately, I'm not using IAR - but I will forward this issue to our IAR expert.

Can you post the exact error message when you open the original project?

Best regards,

Manfred.
by

Hello Manfred,

Thank you for forwarding my question.

I'm currently using IAR embedded workbench for ARM 8.30.1

and this is the error I recieved on opening the original file:

With kind regards,

Luc

by
Hello Manfred,

I was able to retreive all the settings from the backup.ewp file. I got the programming up and running now.

With kind regards,

Luc
by
I noticed, that sometimes some project settings get lost, if an older IAR EWARM version tries to "downgrade" a project created by a newer  EWARM version.

Therefore I generally would recommend to use the latest IAR EWARM version.

Embedded Wizard Website | Privacy Policy | Imprint

...