Re: rtems_message_queue_receive / rtems_event_receive issues

2018-09-19 Thread Mingyu Li
Hi Catalin, Please also make sure that the clock ISR is installed via rtems_interrupt_handler_install(). Actually, in order to check whether scheduler works well, you can set a break point at clock ISR or keep track of 'tick' variable. I think that your USB ISR does not complete and further blocks

Re: rtems_message_queue_receive / rtems_event_receive issues

2018-09-19 Thread Sebastian Huber
On 19/09/2018 14:46, Catalin Demergian wrote: I installed the ISR myself like this   // USB related initializations _ARMV7M_Set_exception_priority_and_handler(ARMV7M_VECTOR_IRQ(STM32F7_IRQ_OTG_FS), BSP_ARMV7M_IRQ_PRIORITY_DEFAULT, USB_OTG_Handler); I am sure that the ISR is entered after the

Re: rtems_message_queue_receive / rtems_event_receive issues

2018-09-19 Thread Catalin Demergian
Hi, thank you for answering ! I am using my own queues and rtems_event_send to notify my kernel task from the USB ISR that a new packet arrived. I found an interesting field in the TCB structure /** This field is the amount of CPU time consumed by this thread * since it was created. */