<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>what’s difference between debug mode and release mode?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20122/what-s-difference-between-debug-mode-and-release-mode</link><description>hi, 
 my device is nrf52832 
 i run my spi sd card driver fine in debug mode, but when i download it ( F8 ), it can not work! 
 so my question is what is the difference between debug mode and release mode ? 
 could anyone help me or give me the link</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Mar 2017 19:59:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20122/what-s-difference-between-debug-mode-and-release-mode" /><item><title>RE: what’s difference between debug mode and release mode?</title><link>https://devzone.nordicsemi.com/thread/78354?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 19:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d6f0c12-2b84-479a-9651-68063cb1774b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;+1 to butch explanation&lt;/p&gt;
&lt;p&gt;normally development starts with debug mode so that we are able to debug the binaries which are maybe behaving as not expected or causing assertions. After debugging all known problems, it is common that you build the binary with max optimizations (for code size and/or execution speed)
normally called as release mode and do a regression test on this optimized binary. There is no  real definition of release mode as it depends on your make file or build configuration and what your end product requirements are. One may choose that debug and release modes settings are same if speed and code size is not of concern.  Note that the debugger info is not added to the binary itself, the debugger info for most popular compilers go to a separate file, for example .ELF file which are  not flashed into product memory&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what’s difference between debug mode and release mode?</title><link>https://devzone.nordicsemi.com/thread/78355?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 13:14:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:477b0343-b9d1-47b3-a95f-44dc4cde3f65</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;What is your environment: for example Keil, Windows 10, etc?   In general, &amp;quot;debug&amp;quot; and &amp;quot;release&amp;quot; modes are &amp;quot;build configurations&amp;quot; that is sets of flags and options for the compiler.  Typically debug mode means add info to the binary so that the debugger can read it and tell you where the program is in terms of symbols from the source code.  Release mode typically means that info is absent.  Also, release mode might disable any assertions, and perform code optimization.  If debug mode works, why do you want to use release mode?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>