cancel
Showing results for 
Search instead for 
Did you mean: 

BUG: STM32G474RE Assert issue when TIM17 is configurated as Timebase source

OGhis
Senior

With CubeMx 5.3.0 and library version 1.1.0 for the stm32G474RE was the Timebase Source in system (SYS) configured for TIM17

On running the application is the "assert_failed()" executed.

This assert was called from the 'HAL_NVIC_SetPriority() function.

assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));

The PreemptPriority has a value of 0x10 => initialized by __NVIC_PRIO_BITS.

But the "IS_NVIC_PREEMPTION_PRIORITY" macro tell us that the value should be lower than 0x10.

#define IS_NVIC_PREEMPTION_PRIORITY(PRIORITY)  ((PRIORITY) < 0x10U)

What is wrong here the the "IS_NVIC_PREEMPTION_PRIORITY" or the "__NVIC_PRIO_BITS" value

13 REPLIES 13
Ede S
Associate III

Hello, same problem here with FW_F4_V1.25.0 (latest release for STM32F4).

Jorgen1
Associate II

I have the same problem with L4 V1.15.1.

Does anybody know when a fix will be released ?

TCash.1
Associate III

I am also getting an assert_failed() because of this on an stm32H743ZI With FreeRTOS enabled and TIM14 Used as SYS Timebase source