2022-04-14 04:59 AM
I am trying to get working the STM32F7508-DK demo application on my STM32F7508-DK board, but when the TouchGFX is launched, the configASSERT is not properly asserted and the program dead on an infinite loop.
I have traced the issue to the port.c file, concretely on the following lines of code:
#ifdef configPRIO_BITS
{
/* Check the FreeRTOS configuration that defines the number of
priority bits matches the number of priority bits actually queried
from the hardware. */
configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS );
}
#endif
Those lines corresponds with lines 329 to 336 of the aforementioned file. I am not able to know why the macro expansion is not taking into account the configPRIO_BITS, because its expansion is shown as follows:
if( ( ( ( ( uint8_t ) 7 ) - ulMaxPRIGROUPValue ) == __NVIC_PRIO_BITS ) == 0 ) { vPortRaiseBASEPRI(); for( ;; ); }
It is taking into account the _NVIC_PRIO_BITS instead of the configPRIO_BITS and I don't know why...
Just in case somebody faced this problem before and may help me, i'll be so grateful.
Thanks in advance.
Kind regards,
Víctor.
2022-06-09 07:12 AM
Hello Victor,
Do you still have your issue ? I tried on my side the TouchGFX Demo 1 on a STM32F7508-DK board, and I got no problem.
/Osman