Skip to main content
vicfer89
Associate II
April 14, 2022
Question

TouchGFx Demo application for STM32F7508-dk Does not work properly.

  • April 14, 2022
  • 1 reply
  • 834 views

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.

This topic has been closed for replies.

1 reply

Osman SOYKURT
ST Technical Moderator
June 9, 2022

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

ST Software Developer | TouchGFX