cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX GCC C++ exceptions handling

JJame.1
Associate II

Hello,

related to the post https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/using-cpp-exceptions-in-touchgfx-application/m-p/267439 

is C++ handle exception included in TouchGFX release ?

I did not manage with the code here below, testing a string for a float with std::stof. (TouchGFX 4.21.4)

Thanks

Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
JJame.1
Associate II

Hi Louis,

I use GCC but I found a solution using sscanf from this post : https://community.st.com/t5/stm32-mcus-products/floating-point-support-in-sscanf/td-p/429726 

Thanks

View solution in original post

2 REPLIES 2
LouisB
ST Employee

Hello @JJame.1 ,

Exceptions can be use in your project's code but are not handled by default, and the TouchGfx library is not compiled with exceptions.
Can you tell me which ToolChain you are using?
 

Regards,
 

Louis BOUDO
ST Software Developer | TouchGFX
JJame.1
Associate II

Hi Louis,

I use GCC but I found a solution using sscanf from this post : https://community.st.com/t5/stm32-mcus-products/floating-point-support-in-sscanf/td-p/429726 

Thanks