AnsweredAssumed Answered

LPC54102 SDK

Question asked by Daniel Gull on Sep 14, 2017
Latest reply on Oct 12, 2017 by Carlos_Mendoza

I am working with IAR Embedded Workbench for ARM version 7.80 and LPC54102. I downloaded the NXP provided SDK_2.2_LPC54102J512.zip from here https://mcuxpresso.nxp.com/en/configuration-settings using the Toolchain / IDE IAR Workbench for ARM with Host OS Windows. In my IAR project I use the NXP proprietary power library devices\LPC54102\iar\iar_lib_power.a. When I compile and link my project with this power library I get linker warnings:

 

Warning[Lt009]: Inconsistent wchar_t size

            APP_Main.o and 163 other objects have wchar_t size 16 bits

            power_lib.o(iar_lib_power.a) has wchar_t size 32 bits

 

When I look up this warning on the web I come across this page: http://netstorage.iar.com/SuppDB/Public/UPDINFO/012120/arm/doc/infocenter/iccarm.ENU.html

 

In EWARM version 7.80 and earlier, the size of wchar_t was 2 bytes wide and the runtime attribute was set accordingly. For EWARM version 8.10, the size of wchar_t was 4 bytes wide but the value of the runtime attribute was not updated. Thus in 8.10 code is generated with 4 byte wide wchar_t but the object file is marked as if wchar_t is 2 bytes wide. In EWARM version 8.11 wchar_t is 4 bytes wide and the runtime attribute is set accordingly.

 

My questions and request for help: Which IAR Embedded Workbench for ARM version is used to build the SDK's? I assume version 8.11. Can we have the SDK's built with IAR version 8.11 or 7.80 or can there be an additional option to select which IAR version I want to build my SDK with?

 

Thanks

 

Daniel Gull

Attachments

Outcomes