cancel
Showing results for 
Search instead for 
Did you mean: 

[STemWin]Inconsistent wchar_t size warning on IAR 8.50.1

Tiel
Associate II

Hello,

When I try to build source codes including STemWin(5.40) library, following warning is shown and display is not work. when I tested at IAR 7.80.4, there was no problem.

Warning[Lt009]: Inconsistent wchar_t size 

      GUIAA_Char4Ext_XBF.o(STemWin540_CM4_IAR.a) and 166 other objects in STemWin540_CM4_IAR.a have wchar_t size 16 bits 

      __proc.o and 310 other objects, some of them in dl7M_tlf.a and 99 other libraries have wchar_t size 32 bits 

When I searched iar warning info, I found this

In EWARM version 7.80 and earlier, the size of wchar_t was 2 bytes wide and the runtime attribute was set accordingly.

In EWARM version 8.11 wchar_t is 4 bytes wide and the runtime attribute is set accordingly.

As a result, we need to differentiate emWin Library by IAR version.

Could any one know where to find STemWin library to be able to support IAR 8.x?

Best Regards,

Tommy Lim

1 REPLY 1
Imen.D
ST Employee

Hello @Tiel​ and welcome to the Community 🙂

Could you precise which package firmware are you using?

Today, STemWin-library based on version V5.44 on the STM32Cube MCU package:

/Repository/STM32Cube_FW_XX_Version/Middlewares/ST/STemWin/

You should follow the configuration steps provided in the AN4323: Getting started with STemWin Library, in section “3 How to use STemWin Library step by step�?.

Hope this helpful for you.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen