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

A software interrupt ends on its own when viewing on trace...any explanation?

Hi Devzone:

We are using J-link pro to collect trace data from nRF52833 DK board, and we found a rather strange behavior:

The sw interrupts would end on its own without PE coming back from the call stack to end it.

See ozone screenshot below:

a little explanation of the doodle in the picture: "another main() fills in" is a ozone display artifact. Guess it doesn't know how to handle a interrupt ending pre-maturely so it inserts a second main.

So regarding the problem, shouldn't the sw interrupt (the orange bar) continue extending to the right till PE comes back from the call stack? Why does it terminate pre-maturely?

Thanks.

Parents
  • That's probably a bug in Ozone. I suggest you ask Segger for help as well.

    If it's not a bug in the debugger tool then it indicates a stack corruption which should cause the system to behave erratically, do you observe such symptoms, other than the "extra" main thread?

    Are you running any RTOS, SoftDevice, or similar, or are you just running the ESB library? 


Reply
  • That's probably a bug in Ozone. I suggest you ask Segger for help as well.

    If it's not a bug in the debugger tool then it indicates a stack corruption which should cause the system to behave erratically, do you observe such symptoms, other than the "extra" main thread?

    Are you running any RTOS, SoftDevice, or similar, or are you just running the ESB library? 


Children
Related