Skip to content

Commit

Permalink
tracing: Add ISR numbers to SystemView for Cortex-M
Browse files Browse the repository at this point in the history
The sysview module does not set an interrupt number when recording ISRs
using SEGGER SystemView. Added ISR numbers for Cortex-M based chips.

Signed-off-by: Jan Müller <jan.mueller@nordicsemi.no>
  • Loading branch information
Tschet1 authored and galak committed May 4, 2021
1 parent db22c42 commit 10ee29e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions subsys/tracing/sysview/sysview.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ uint32_t sysview_get_timestamp(void)

uint32_t sysview_get_interrupt(void)
{
#ifdef CONFIG_CPU_CORTEX_M
interrupt = ((SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) >>
SCB_ICSR_VECTACTIVE_Pos);
#endif
return interrupt;
}

Expand Down

0 comments on commit 10ee29e

Please sign in to comment.