cancel
Showing results for 
Search instead for 
Did you mean: 

When compiling TouchGfx project assert strings are in binary

JMD
Associate II

Dear All,

When I compile my TouchGfx project with Assert disabled (NDEBUG symbol defined) strings are keept in binary and use lot of flash space.

Can you have any idea how to disable this to save space ?

Event if assert is defined to # define assert(__e) ((void)0) strings are kept.

Thank you so much for your help.

0693W000006HTQBQA4.png

2 REPLIES 2
MM..1
Chief III

I check and this is part of library libtouchgfx.a that exist only in debug variant, and i ask too WHY?

JMD
Associate II

For me strings argument of assert function exist too in release variant.

Event if you use # define assert(__e) ((void)0)  strings are kept and passed to assert function (but never used) .

This behavior disclose internal path and consume lot of flash. I can remove all call of assert but it is very time consuming and if I regenerate a project with TouchGfx I lost my modification.

Thank you for your support