diff --git a/drivers/segger/note_sysview.c b/drivers/segger/note_sysview.c index 327db8909e..7e4d8baf36 100644 --- a/drivers/segger/note_sysview.c +++ b/drivers/segger/note_sysview.c @@ -375,6 +375,12 @@ int note_sysview_initialize(void) note_sysview_send_tasklist, }; + if (freq == 0) + { + syslog(LOG_ERR, "up_perf isn't initialized, sysview isn't available"); + PANIC(); + } + SEGGER_SYSVIEW_Init(freq, freq, &g_sysview_trace_api, note_sysview_send_description);