diff --git a/arch/arm/src/stm32/stm32_start.c b/arch/arm/src/stm32/stm32_start.c index 9ea48fe195..6bac748fcc 100644 --- a/arch/arm/src/stm32/stm32_start.c +++ b/arch/arm/src/stm32/stm32_start.c @@ -158,7 +158,7 @@ void __start(void) showprogress('C'); -#ifdef CONFIG_SCHED_IRQMONITOR +#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW) up_perf_init((void *)STM32_SYSCLK_FREQUENCY); #endif diff --git a/arch/arm/src/stm32f0l0g0/stm32_start.c b/arch/arm/src/stm32f0l0g0/stm32_start.c index f17b9867c1..8fb64641af 100644 --- a/arch/arm/src/stm32f0l0g0/stm32_start.c +++ b/arch/arm/src/stm32f0l0g0/stm32_start.c @@ -115,7 +115,7 @@ void __start(void) showprogress('C'); -#ifdef CONFIG_SCHED_IRQMONITOR +#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW) up_perf_init((void *)STM32_SYSCLK_FREQUENCY); #endif diff --git a/arch/arm/src/stm32f7/stm32_start.c b/arch/arm/src/stm32f7/stm32_start.c index d3ea80f6fb..4b9915be78 100644 --- a/arch/arm/src/stm32f7/stm32_start.c +++ b/arch/arm/src/stm32f7/stm32_start.c @@ -245,7 +245,7 @@ void __start(void) up_enable_dcache(); showprogress('C'); -#ifdef CONFIG_SCHED_IRQMONITOR +#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW) up_perf_init((void *)STM32_SYSCLK_FREQUENCY); #endif diff --git a/arch/arm/src/stm32h7/stm32_start.c b/arch/arm/src/stm32h7/stm32_start.c index bdd64dde1a..a4e7782fd5 100644 --- a/arch/arm/src/stm32h7/stm32_start.c +++ b/arch/arm/src/stm32h7/stm32_start.c @@ -246,7 +246,7 @@ void __start(void) up_enable_dcache(); showprogress('C'); -#ifdef CONFIG_SCHED_IRQMONITOR +#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW) up_perf_init((void *)STM32_SYSCLK_FREQUENCY); #endif diff --git a/arch/arm/src/stm32l4/stm32l4_start.c b/arch/arm/src/stm32l4/stm32l4_start.c index b6c22f66fb..0b6f140477 100644 --- a/arch/arm/src/stm32l4/stm32l4_start.c +++ b/arch/arm/src/stm32l4/stm32l4_start.c @@ -179,7 +179,7 @@ void __start(void) showprogress('C'); -#ifdef CONFIG_SCHED_IRQMONITOR +#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW) up_perf_init((void *)STM32_SYSCLK_FREQUENCY); #endif diff --git a/arch/arm/src/stm32l5/stm32l5_start.c b/arch/arm/src/stm32l5/stm32l5_start.c index d7076ae75c..c26ad9ac91 100644 --- a/arch/arm/src/stm32l5/stm32l5_start.c +++ b/arch/arm/src/stm32l5/stm32l5_start.c @@ -181,7 +181,7 @@ void __start(void) showprogress('C'); -#ifdef CONFIG_SCHED_IRQMONITOR +#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW) up_perf_init((void *)STM32_SYSCLK_FREQUENCY); #endif diff --git a/arch/arm/src/stm32u5/stm32_start.c b/arch/arm/src/stm32u5/stm32_start.c index ceac912d7d..6758d38d21 100644 --- a/arch/arm/src/stm32u5/stm32_start.c +++ b/arch/arm/src/stm32u5/stm32_start.c @@ -181,7 +181,7 @@ void __start(void) showprogress('C'); -#ifdef CONFIG_SCHED_IRQMONITOR +#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW) up_perf_init((void *)STM32_SYSCLK_FREQUENCY); #endif diff --git a/arch/arm/src/stm32wb/stm32wb_start.c b/arch/arm/src/stm32wb/stm32wb_start.c index c144f9f54b..245722445f 100644 --- a/arch/arm/src/stm32wb/stm32wb_start.c +++ b/arch/arm/src/stm32wb/stm32wb_start.c @@ -199,7 +199,7 @@ void __start(void) showprogress('C'); -#ifdef CONFIG_SCHED_IRQMONITOR +#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW) up_perf_init((void *)STM32_SYSCLK_FREQUENCY); #endif diff --git a/arch/arm/src/stm32wl5/stm32wl5_start.c b/arch/arm/src/stm32wl5/stm32wl5_start.c index 41df15e860..75b6b67031 100644 --- a/arch/arm/src/stm32wl5/stm32wl5_start.c +++ b/arch/arm/src/stm32wl5/stm32wl5_start.c @@ -183,7 +183,7 @@ void __start(void) showprogress('C'); -#ifdef CONFIG_SCHED_IRQMONITOR +#if defined(CONFIG_SCHED_IRQMONITOR) || defined(CONFIG_SEGGER_SYSVIEW) up_perf_init((void *)STM32_SYSCLK_FREQUENCY); #endif