Setting ASF to disable toolchain optimization

I hate to spend time trying to remember things that I already did in the past, but all times that I didn’t document it I always spend time figuring it out.

When compiling an ELF binary in the Atmel ASF studio I need to disable GCC optimization in order to get all debug info from GDB.

To disable Toolchain optimization in the ASF:

Project ->
        YourProjectName Properties... ->
                Toolchain ->
                        ARM/GNU C Compiler ->
                                Optimization ->
                                        Optimization Level = None (-O0)
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s