Hi all,
Any updates on this topic?
Best regards,
Bohdan Hunko
Cypress Semiconductor Ukraine LLC
Senior Engineer
CSS ICW SW INT BFS SFW
Mobile: +380995019714
Bohdan.Hunko@infineon.com
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.org>
Sent: Friday, 27 February 2026 14:23
To: Antonio.DeAngelis@arm.com; Anton.Komlev@arm.com; Nicola.Mazzucato@arm.com; tf-m@lists.trustedfirmware.org; David.Hazi@arm.com
Cc: nd@arm.com
Subject: [TF-M] Re: Short enums and short wchar
|
Caution: This e-mail originated outside Infineon Technologies. Please be cautious when sharing information or opening attachments especially from unknown senders. Refer to our intranet guide to help you identify Phishing email. |
Hi all,
Thank you for the replies and suggestions.
I investigated the short enum and short wchar settings, and here is what I found.
At the moment, enum and wchar width settings are inconsistent across compilers:
|
|
|
|
|||||||||||||||
|
|
|
This inconsistency means that we cant choose uniformed flags for our crypto library.
I checked proposed solutions and I can agree that limited bandwith is also huge limitation for our team, thus we also will not be able to implement solutions like moving to freertos or building CMSIS rtos from sources during TFM build are.
As stated by Nicola:
> I rebuilt RTX not long ago and was not very difficult.
I believe this is the best solution here – just rebuild RTOS (with versions that are currently used (v5.5.0 for ARMCLANG and GCC compilers and v5.7.0 for IAR compiler)) with -fno-short-wchar and -fno-short-enums. And then remove short enum/wchar from compiler options in respective toolchain.cmake files in TFM.
If this change is acceptable I would gladly make changes in TFM cmake files and maybe @Nicola Mazzucato would be generous to provide rebuilt for the libraries?
Best regards,
Bohdan Hunko
Cypress Semiconductor Ukraine LLC
Senior Engineer
CSS ICW SW INT BFS SFW
Mobile: +380995019714
Bohdan.Hunko@infineon.com
From: Antonio De Angelis <Antonio.DeAngelis@arm.com>
Sent: Friday, 27 February 2026 11:08
To: Anton Komlev <Anton.Komlev@arm.com>; Nicola Mazzucato <Nicola.Mazzucato@arm.com>; Hunko Bohdan (CSS ICW SWE INT BFS SFW) <Bohdan.Hunko@infineon.com>;
tf-m@lists.trustedfirmware.org; David Hazi <David.Hazi@arm.com>
Cc: nd <nd@arm.com>
Subject: Re: Short enums and short wchar
|
Caution: This e-mail originated outside Infineon Technologies. Please be cautious when sharing information or opening attachments especially from unknown senders. Refer to our intranet guide to help you identify Phishing email. |
There were mentions of using FreeRTOS, I believe it’s a good option as well, being it a widely adopted solution in the ecosystem. But we can discuss further in a tech forum.
Thanks,
Antonio
Sent from Outlook for Mac