Skip to main content
LPode.1
Associate II
January 21, 2021
Question

Hi, I need to force compiler option to signed char type as I porting a big project to stm32. Sorry but I not see how to do. :) Thanks

..

This topic has been closed for replies.

10 replies

LPode.1
LPode.1Author
Associate II
January 21, 2021

option to force UNSIGNED CHAR

KnarfB
Super User
January 21, 2021

depends on the compiler you are using

LPode.1
LPode.1Author
Associate II
January 21, 2021

Thanks for your reply!

I using STM32CubeIDE for stm32F446, in the properties settings I see toolchain set to GNU tools for STM32

KnarfB
Super User
January 21, 2021

-funsigned-char

LPode.1
LPode.1Author
Associate II
January 21, 2021

:) BIG THANKS

Where should be added?

I trying in Properties->C/C++ Build->Settings->Tool Settings->MCU GCC Compiter->Miscellaneous->Other flags

but not works

KnarfB
Super User
January 21, 2021

can you give a source code line example what didn't work and what is the compiler message

KnarfB
Super User
January 21, 2021

That's another warning. char remains a separate type and so that warning remains regardless of signed/unsigned.

LPode.1
LPode.1Author
Associate II
January 21, 2021

:thumbs_up: Thanks