This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

what’s difference between debug mode and release mode?

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 to solve this problem ?

thx

Parents
  • What is your environment: for example Keil, Windows 10, etc? In general, "debug" and "release" modes are "build configurations" 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?

Reply
  • What is your environment: for example Keil, Windows 10, etc? In general, "debug" and "release" modes are "build configurations" 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?

Children
No Data
Related