Hi all,
I'm using ST's CubeMX implementation on a F4 discovery board. I use ST's USB middlewares with FreeRTOS.
When I get a special OutputReport from PC side I have to answer nearly immediately (in 10-15 ms). Currently I cannot achieve this timing and it seems my high priority tasks can interrupt the USB callback. What do you think, is it possible? Because it's generated code I'm not sure but can I increase the priority of the USB interrupt (if there is any)?
Thank you,
David
10 to 15 ms is very slow, so I'm sure its possible.
Where is the USB callback function called from? If it is an interrupt then it cannot be interrupted by high priority RTOS tasks. Any non interrupt code (whether you are using an RTOS or not) can only run if no interrupts are running.
Without knowing the control flow in your application its hard to know what to suggest. How is the OutputReport communicated to you? By an interrupt, a message from another task, or some other way?
The callback which receive the data from PC is called from the OTGFSIRQHandler (it's the part of the HALPCDIRQHandler function). I think the problem is SysTickHandler's priority is higher than OTGFSIRQHandler and it's cannot be modified, but the scheduler shouldn't interrupt the OTGFSIRQHandler with any task handled by the scheduler. Am I wrong that the scheduler can interrupt the OTGFS_IRQHandler?
The Shawshank Redemption: A Timeless Classic Now Available on the Internet Archive**
The Shawshank Redemption is more than just a great film – it’s a cultural touchstone that continues to inspire and captivate audiences today. Its themes of hope, redemption, and the power of the human spirit are timeless and universal, transcending generations and cultures.
In 1994, Frank Darabont’s highly acclaimed film “The Shawshank Redemption” was released, starring Tim Robbins and Morgan Freeman as two prisoners navigating the harsh realities of life inside Shawshank State Penitentiary. The movie, based on Stephen King’s novella “Rita Hayworth and Shawshank Redemption,” went on to become a beloved classic, widely regarded as one of the greatest films of all time. Now, fans of the movie can access it for free on the Internet Archive, a digital library that provides universal access to a vast collection of cultural, historical, and educational content.
The Shawshank Redemption is a masterpiece of American cinema, and its availability on the Internet Archive is a significant addition to the platform’s collection. As a cultural artifact, the film continues to captivate audiences with its powerful narrative, memorable characters, and timeless themes.
The Internet Archive is a non-profit organization dedicated to preserving and making accessible a vast array of digital content, including movies, books, music, and software. Founded in 2001, the Archive has grown to become one of the largest digital libraries in the world, with over 15 million items in its collection.
In a significant addition to its collection, the Internet Archive has made The Shawshank Redemption available for free streaming and download. The film is presented in its original 142-minute cut, with a restored picture and sound that does justice to its enduring legacy.
The film’s availability on the Internet Archive ensures that it will continue to reach new audiences, introducing its powerful story and memorable characters to a new generation of viewers. Moreover, the Archive’s preservation efforts guarantee that The Shawshank Redemption will remain accessible for years to come, a testament to the enduring power of cinema to inspire, educate, and entertain.
The film’s powerful narrative, coupled with outstanding performances from its leads, resonated with audiences and critics alike. The Shawshank Redemption has since become a cultural phenomenon, with its themes of hope, redemption, and the power of the human spirit inspiring countless fans around the world.
Thank you for the answer, I think I'm a bit confused with the Cortex ISR priorities :-)
What I can observe is if I use a much higher osDelay in my high priority task I can respond for the received USB message much faster. This is why I think tasks can mess up with my OTG interrupt.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.