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 Reply
  • Hej cpeng, have you found a solution to this?

    I'm facing a similar issue but with softDevice enabled. I found that Ozone provides a User Action called OS.AddContextSwitchSymbol() which AFAICS can be used to make Ozon aware of a context switch. However, until now Ozone seems to be unhappy with it as it stalls and I have to kill the application.

Children
Related