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

Is the RTT functional when APPROTECT is enabled?

With the nRF52, is the RTT functional when APPROTECT is enabled?

I would expect not since the RTT relies on memory accesses which should be disabled with APPROTECT

Parents
  • A ran a quick experiment and confirmed that the RTT is not functional when APPROTECT is enabled.

  • As @koniho hinted, there is nothing like "debug" or "release" build in native code for ARM Cortex-M, this is managed just in your project and source code. SW developer's sole screams "no debug code in release FW version!" because of code size and performance, but you can claim that you have neither problems with flash size (because the smallest available nRF52 is 512kB) nor with RAM (at least 64kB on nRF52) nor with performance (because RTT is HW peripheral so computing overhead is smaller then classic UART debug). However I do believe that it really doesn't have place in production FW unless you intentionally build production FW with such debug print-outs because you expect using it in the field - e.g. by users during bug reports or simply because your product marketing wants it.

Reply
  • As @koniho hinted, there is nothing like "debug" or "release" build in native code for ARM Cortex-M, this is managed just in your project and source code. SW developer's sole screams "no debug code in release FW version!" because of code size and performance, but you can claim that you have neither problems with flash size (because the smallest available nRF52 is 512kB) nor with RAM (at least 64kB on nRF52) nor with performance (because RTT is HW peripheral so computing overhead is smaller then classic UART debug). However I do believe that it really doesn't have place in production FW unless you intentionally build production FW with such debug print-outs because you expect using it in the field - e.g. by users during bug reports or simply because your product marketing wants it.

Children
No Data
Related