SEGGER_SYSVIEW_RecordEnterISR() crashing program in SysTick ISR

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • SEGGER_SYSVIEW_RecordEnterISR() crashing program in SysTick ISR

    Greetings,

    Im facing strange issue with SEGGER_SYSVIEW_RecordEnterISR().

    Function works correctly in PendSV_Handler() and also in SVC_Handler() but crashes my software when called in SysTick_Handler() - HardFault when switching to first task context. Any ideas / similar problems? Maybe something with configuration files (priorities etc.)

    Im working on STM32F7 and uVision 5 (custom RTOS project) + j-link EDU.

    Best,
    en2

    The post was edited 1 time, last by en2 ().

  • Hi,

    Does it crash on each call in the SysTick Handler?
    Might it be possible that you do not have enough system stack?
    As described in the documentation, incoming packets can be handled when creating events,
    which may require more stack to be available at any time a SystemView event could be generated.

    Regards
    Johannes
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hello,

    Thx for the reply. Unfortunately its crashing only in SysTick Handler (not on the reporting function, but its somehow changing switching procedure and after calling asm BX 0xFFFFFFFD program switches to HardFault Hanlder instead of first task context). My SysTick Handler is calling PendSV interrupt (which has higher priority), and capturing it with RecordEnterISR() cause no error so I assume that its not related with stack (both SysTick and PendSV share MSP while in Handler mode).
  • Hi,

    This does not seem to be related to SystemView or event recording.
    Might it be possible that there is an issue with your RTOS?
    Maybe a further analysis in the HardFault Handler might help.
    (segger.com/downloads/appnotes/…ngHardFaultsOnCortexM.pdf)

    Regards
    Johannes
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.