diff --git a/testrt/VT_STORM/cfg/stm32g474re_nucleo64/chconf.h b/testrt/VT_STORM/cfg/stm32g474re_nucleo64/chconf.h index 045042cd6..7625db379 100644 --- a/testrt/VT_STORM/cfg/stm32g474re_nucleo64/chconf.h +++ b/testrt/VT_STORM/cfg/stm32g474re_nucleo64/chconf.h @@ -100,7 +100,7 @@ * this value. */ #if !defined(CH_CFG_ST_TIMEDELTA) -#define CH_CFG_ST_TIMEDELTA 20 +#define CH_CFG_ST_TIMEDELTA 12 #endif /** @} */ @@ -575,7 +575,7 @@ * @note The default is @p FALSE. */ #if !defined(CH_DBG_ENABLE_CHECKS) -#define CH_DBG_ENABLE_CHECKS TRUE +#define CH_DBG_ENABLE_CHECKS FALSE #endif /** @@ -587,7 +587,7 @@ * @note The default is @p FALSE. */ #if !defined(CH_DBG_ENABLE_ASSERTS) -#define CH_DBG_ENABLE_ASSERTS TRUE +#define CH_DBG_ENABLE_ASSERTS FALSE #endif /** diff --git a/testrt/VT_STORM/source/vt_storm.c b/testrt/VT_STORM/source/vt_storm.c index 3b9a3e854..298f1343c 100644 --- a/testrt/VT_STORM/source/vt_storm.c +++ b/testrt/VT_STORM/source/vt_storm.c @@ -232,6 +232,7 @@ static void guard_cb(virtual_timer_t *vtp, void *p) { */ void vt_storm_execute(const vt_storm_config_t *cfg) { unsigned i; + sysinterval_t periodic; config = cfg; @@ -275,6 +276,14 @@ void vt_storm_execute(const vt_storm_config_t *cfg) { gptStartContinuous(cfg->gpt2p, 101); #endif + /* Interval for the periodic timer, note that slow systicks would + result in a period of 1, which is not acceptable, increasing it + to two.*/ + periodic = TIME_US2I(50); + if (periodic < (sysinterval_t)2) { + periodic = (sysinterval_t)2; + } + for (i = 1; i <= VT_STORM_CFG_ITERATIONS; i++) { bool warning;