This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Debug versus Release builds in the Stellaris environment

I'm coming from a background where the debug build contained code for the debugger interface. In the case of the ARM architecture where the debug is performed in hardware, is there any significance between these two builds in terms of what gets loaded into the flash memory? I can understand the difference in that the release file does not need to have the 'map' information, so this is specifically about the memory contents.

Another way to ask this: If I have loaded the debug version, do I need to rebuild to the release version before loading the flash?

 

  • David,

    David Pfaltzgraff said:

    In the case of the ARM architecture where the debug is performed in hardware, is there any significance between these two builds in terms of what gets loaded into the flash memory?

    No. From a pure compiler perspective the differences between a "Debug" and a "Release" are only tied to the debugging info (-g) and optimization (-o? -ml? and -pm, among other options). Our compilers will only have differences with regards to optimization but do not enable specific debugging routines or hardware.

    In other words, the "Debug" and "Release" are functionally identical and can be loaded to flash or RAM.

    If you use a RTOS (BIOS, for example) then you can add specific software routines designed for debugging - things like printfs, thread-level mapping, load calculations, etc.  

    Best regards,

    Rafael

     

  • That's what I had expected and it's good to get confirmation.

    Thanks