I have an application that works fine in "Debug" configuration, however when I change the configuration to "Release" the program behaves differently, what could be going on?
The following table lists the default project property differences between "Debug" and "Release" configurations:
|Build > Include
The most common cause of this problem we come across is where users modify a project property during development and they make the change in "Debug" configuration only rather than the "Common" configuration so that the change only applies to the "Debug" configuration and is therefore not picked up in the "Release" configuration.
The Build > Include Debug Information project property is unlikely to make any difference - it just specifies whether or not debug information is included in the .elf file, it should not make any difference to the program that is downloaded.
The change in optimisation level can cause a program to behave differently. See Changing optimisation levels causes different application behaviour for a description of why changing the optimisation level may alter the way an application behaves.