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

nRF52832 Real-time debug

I did a search on Real-time debug, it's said for nRF52810, in Code generation, should set Debugging Level to Level 3, and Optimization Level to None
Is that true for nRF52832, by default it set Debugging Level to Level 3, and Optimization Level to Debug, looks good to me.

Parents
  • Hi,

    What exactly do you mean by "Real-time debug"? Setting the Optimization level to None or -O0 is recommended when debugging, as this is the mode supported by all compilers/IDEs. You might also use Debug (-Og), if using GCC/SES. See -Og on this page.

    Best regards,
    Jørgen

  • Hi, Jorgen,

    Real-time debugging will allow interrupts to execute to completion in real time when breakpoints are set
    in Thread mode or lower priority interrupts. This enables the developer to set a breakpoint and single-
    step through their code without a failure of the real-time event-driven threads running at higher priority. For
    example, this enables the device to continue to service the high-priority interrupts of an external controller or
    sensor without failure or loss of state synchronization while the developer steps through code in a low-priority
    thread.

    -- copied from nRF52832 Product Specification v1.4

    But how to set breakpoints in Thread mode or lower priority interrupts?  it don't say.

    Regards.

Reply
  • Hi, Jorgen,

    Real-time debugging will allow interrupts to execute to completion in real time when breakpoints are set
    in Thread mode or lower priority interrupts. This enables the developer to set a breakpoint and single-
    step through their code without a failure of the real-time event-driven threads running at higher priority. For
    example, this enables the device to continue to service the high-priority interrupts of an external controller or
    sensor without failure or loss of state synchronization while the developer steps through code in a low-priority
    thread.

    -- copied from nRF52832 Product Specification v1.4

    But how to set breakpoints in Thread mode or lower priority interrupts?  it don't say.

    Regards.

Children
No Data
Related