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?
This is the perfect option for non-commercial, home-based users (earning less than from their projects). Here’s what you get for free:
Downloading Autodesk Fusion 360 from third-party sites like GetIntoPC poses severe security risks and is completely unnecessary. Because Fusion 360 relies heavily on cloud infrastructure, cracked versions are highly unstable, outdated, and insecure. Autodesk offers completely legitimate, free access tiers for individuals who qualify. Why Third-Party Cracks Fail 1. Cloud-Based Architecture
Run the downloaded lightweight installer ( Fusion 360 Client Downloader ).
Hobbyists, makers, and DIY enthusiasts earning less than $1,000 USD per year from their projects.
You do not need to risk your digital security with GetIntoPC. Autodesk provides several legal avenues to access Fusion 360 for free, depending on your use case. Option 1: The Personal/Hobbyist License (Best for Makers)
Visit the Autodesk website, navigate to the "Fusion 360 for Personal Use" page, create a free account, and download the official installer.
Run the installer and sign in with your Autodesk credentials.
Access to professional tools to help grow your business. Steps to Official Fusion 360 Download
Searching for the best way to get Fusion 360 free via GetIntoPC is like searching for the best way to cross a highway blindfolded. The best way is the official way.
Security firms consistently flag downloads from GetIntoPC. The "cracks" or "patches" required to bypass Fusion 360’s online license verification are often loaded with keyloggers, ransomware, or crypto miners. You risk losing your personal data, passwords, and even your entire PC.
To get the most out of Autodesk Fusion 360, consider the following:
Encrypts your personal files and demands payment.
Fusion relies heavily on the Autodesk Cloud Infrastructure to save projects, compute complex rendering jobs, and manage parametric timelines. A cracked installer cannot securely handshake with Autodesk servers, completely breaking the core functionality of the platform.
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.