Using CPP Exceptions in touchgfx application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-27 1: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.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-27 2:45 AM
Sincerest apologies! I created the lib but forgot to update this thread! -_-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-31 7:19 AM
Hi @STang.1​,
There is no such variant, but i could be persuaded to create one for you
/Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-31 4: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-01 2: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-26 4:59 PM
Hi Martin,
Any update on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-27 2:45 AM
Sincerest apologies! I created the lib but forgot to update this thread! -_-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-27 2:46 AM
It's created with EWARM 8.42,1 - TouchGFX Version 4.13.0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-27 6:50 PM
Just update this thread or PM me directly when you can verify the library. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-27 8: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
