cancel
Showing results for 
Search instead for 
Did you mean: 

STemWin is not working with IAR

John Smith_2
Associate II

Hello! I've noticed that STemWin from st.com does not work with IARv8.x. The reason is that in IAR wchar_t size is 32 bits and STemWin library has wchar_t size 16 bits. Is there any solution to this problem? Or STemWin is just incompatible with the newest IAR IDE?

1 REPLY 1
AGayn
Associate

I hit this problem this week (Nov 2020) after updating an old F4 project that used STemWin 5.22 and IAR 7.80 to IAR 8.50. Older forum posts showed this problem cropped up early in 2018, with a proposal by ST to fix it by rebuilding the STemWin library files. Downloading the latest STemWin from the website (version 5.32) showed no such rebuild was present, but checking the history of STM32CubeF4 on github showed that STemWin 5.44 had been included in the cube package. This is the fix, download the latest STM32Cube for your micro, for me v1.25.0 F4 was the one used, and manually extract the latest STemWin with the new library files - which are no longer compiler-specific but work fine with IAR 8.50.