AnsweredAssumed Answered

USB Host FreeRTOS Assertion fails

Question asked by Johanan on Oct 31, 2014
Latest reply on Nov 3, 2014 by Johanan
As soon as the USB disk is connected, I get an assertion fail, with this comment above this assertion:
/* The following assertion will fail if a service routine (ISR) for
               an interrupt that has been assigned a priority above
               configMAX_SYSCALL_INTERRUPT_PRIORITY calls an ISR safe FreeRTOS API
               function.  ISR safe FreeRTOS API functions must *only* be called
               from interrupts that have been assigned a priority at or below

 configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );

I tried to change the OTG_FS_IRQn priority as follows:


But this did not make any change.

I found this happand just as soon as this is called:

 osMessagePut ( phost->os_event, USBH_PORT_EVENT, 0);

Any ideas how to fix this?