Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

Anonymous
Not applicable

Hello,

We have code that only works when -debug is specified in the build string.  After some reading, I found that -debug disables optimization.  Is there a way I can disable optimization in the build string explicitly?  I would like to verify this is the cause of strange behavior in code (delayed UART responses after performing a DMA ADC reading).

Thanks,

Ben

0 Likes
2 Replies
Anonymous
Not applicable

Furthermore, if I choose FreeRtos instead of ThreadX the problem completely goes away.

0 Likes
SeyhanA_31
Employee

Hi,

Yes it is true that the "-debug" option on "Make Target" disables the optimization so that the code could be debugged. The "-debug" disables the optimization in the build string.

For detailed optimization setting could be found in ../tools/makefiles/wiced_toolchain_ARM_GNU.mk.

The COMPILER_SPECIFIC_UNOPTIMIZED_CFLAGS and COMPILER_SPECIFIC_OPTIMIZED_CFLAGS sets the optimization off and optimization on respectively.

BR,

Seyhan