2020-03-27 01:32 AM
Hi,
Our embedded application heavily uses CPP exceptions. CPP exception support is enabled in IAR under Options -> cpp options -> Enable exceptions . I am trying to integrate the touchgfx library with our embedded application based on STM32H743I MCU. Based on touchgfx article my understanding is that touchgfx library is created with compiler option -fno-exceptions i.e.without exception support. IAR linker generates an error for this
Error[Li009]: runtime model conflict: Module Application.o(touchgfx_core_release.a) specifies that '__CPP_Exceptions' must be 'Disabled', but module Ads1256.o has the value 'Used' .
Is there a variant of touchgfx library created without compiler option -fno-exceptions. This will allow us to link the touchgfx lib with our embedded application and keep using the cpp exceptions.
https://touchgfx.zendesk.com/hc/en-us/articles/206116381-Using-other-IDEs-with-TouchGFX
Solved! Go to Solution.
2020-04-27 02:45 AM
Sincerest apologies! I created the lib but forgot to update this thread! -_-
2020-03-31 07:19 AM
Hi @STang.1,
There is no such variant, but i could be persuaded to create one for you
/Martin
2020-03-31 04:11 PM
Hi Martin,
Thanks for your reply. I thought this would be a common requirement for others as well. For me this is a deciding factor between emWin and TouchGFX. I have a big list of pros for TouchGFX, but not being able to use CPP exceptions is something that will not pass the software architecture review. Can you please consider creating a variant with CPP exceptions enabled? We are okay if touchgfx does not catch exceptions thrown by application, we can work around that.
2020-04-01 02:02 AM
It's no problem : ) It's good to have these types of inputs and it's probably the first time someone has asked for it, actually. It's on my list now and i'll update this thread.
/Martin
2020-04-26 04:59 PM
Hi Martin,
Any update on this?
2020-04-27 02:45 AM
Sincerest apologies! I created the lib but forgot to update this thread! -_-
2020-04-27 02:46 AM
It's created with EWARM 8.42,1 - TouchGFX Version 4.13.0.
2020-04-27 06:50 PM
Just update this thread or PM me directly when you can verify the library. Thanks!
2020-04-27 08:39 PM
@Martin KJELDSEN
Thanks for the library. I can confirm that I am successfully able to link the new touchgfx lib with my application with cpp exceptions enabled.
Do you plan to include this variant of the library in future touchgfx release?
Regards,
Snehal
2020-04-28 12:47 AM
That's great! About including it - There are a lot of different permutations of libraries for various compilers - I think we'll have to discuss this internally. But if it's something people use a lot then definitely.
/Martin