Hello,
I'm trying to use the Systemview with the FreeRTOS 9.0 in the project created by STM32CubeMx, but the program always stuck in the configASSERT, line 764 in the file port.c (line 18 below). I think the problem occurred because of the level of current nterrupt, got in __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) ), is equal to zero.
Does anybody now fix this?
I called the main file before init the FreeRTOS. Is it the right place?
Thanks!
Display All
I'm trying to use the Systemview with the FreeRTOS 9.0 in the project created by STM32CubeMx, but the program always stuck in the configASSERT, line 764 in the file port.c (line 18 below). I think the problem occurred because of the level of current nterrupt, got in __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) ), is equal to zero.
Does anybody now fix this?
I called the main file before init the FreeRTOS. Is it the right place?
Thanks!
Source Code
- void vPortValidateInterruptPriority( void )
- {
- uint32_t ulCurrentInterrupt;
- uint8_t ucCurrentPriority;
- /* Obtain the number of the currently executing interrupt. */
- __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) );
- /* Is the interrupt number a user defined interrupt? */
- if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
- {
- /* Look up the interrupt's priority. */
- ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
- configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
- }
- configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
- }