Skip to main content
OGhis
Senior
September 1, 2019
Question

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

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

This topic has been closed for replies.

13 replies

Jorgen1
Associate
April 28, 2020

I have the same problem with L4 V1.15.1.

Does anybody know when a fix will be released ?

TCash.1
Associate III
October 20, 2020

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