8 years, 2 months ago.

IAR: modules are compiled with code size limit 32768

Hi there MBED Compilation server team !

IAR7.70 : modules are compiled with code size limit 32768 on ARM MBED server. for bigger application they are not linkable. i cannot build any app from the server

Can you recompile modules ( for Lora Stack )

Best regards

1 Answer

8 years, 2 months ago.

What exactly are you doing? Did you export the project to IAR Embedded Workbench and try to build from there or do something else? The 'kickstart' version of IAR for Cortex-M has a 32K code limit, so you'd need a commercial license to link larger programs.

The code limit of the compiler is typically set to 32 Kbytes (8 kbyte for Cortex-M0 and Cortex-M1), excluding constant data, this is true for all supported ARM cores including Cortex-M3,

Hi Jan, thanks for your answer. I exported your project, to compile locally.( i have a valid IAR Licence) .but since you have compiled modules of mbed.a with size limit of IAR( free version ) i can't link with the project. you should compile with valid option, no ? what can i do?

posted by Jean LE TUTOUR 15 Sep 2016

I *think* that you can reference mbed-dev library rather than mbed. Then you'll get the source rather than a pre-compiled mbed.a and should be linkable with commercial version of IAR Embedded Workbench. Regardless I created an issue against mbed.

posted by Jan Jongboom 15 Sep 2016

Hi Jean,

We are not using the IAR compiler on the online build system, and the released version of the mbed.a is built with a licensed version of the IAR compiler.

Could you elaborate more on what error you're seeing? Are you getting linking errors or is IAR saying you have hit the 32K code limit?

Thanks,

Brian

posted by Brian Daniels 15 Sep 2016

Hi Brian , here is the message Error[Li016]: size limit exceeded. The application needs 0xb616 (46 614) bytes, which is greater than the limit of 0x8000 (32 768) bytes. The limit is due to license "ARM.EW.LINKER" from "E:\R237\LoRaWAN-demo-76\mbed\TARGET_NUCLEO_L152RE\TOOLCHAIN_IAR\cmsis_nvic.o" (and 71 other modules).

if ve got the same , for board.o

posted by Jean LE TUTOUR 16 Sep 2016