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?
On security‑sensitive systems, right‑click the downloaded .exe , go to Properties > Digital Signatures , and verify that the signature is from "Microsoft Corporation" and is valid.
There are many sketchy websites offering "VC++ downloads" that may contain malware or bloatware. To guarantee safety, you should download from official Microsoft sources. There is no "exclusive" private key, but there is an official, permanent, and up-to-date "Latest Supported Visual C++ Redistributable" link.
This indicates the 64-bit version of the runtime, essential for modern Windows 10/11 64-bit operating systems.
The “minimum” qualifier signals a slimmed-down, redistributable subset intended to provide the essential entry points and DLLs required by binaries built with Visual Studio 2022 targeting x64. This contrasts with developer-oriented SDK components and full redistributable installers that include broader debugging, diagnostics, and additional localization assets.
The Microsoft Visual C++ 2022 x64 Minimum Runtime offers several key benefits:
Here is a comprehensive guide to understanding what this runtime is, why you need it, and how to get the correct version for your system. What is the Microsoft Visual C++ 2022 Redistributable?
Corrupted registry keys or an accidental uninstallation of previous C++ packages. Step-by-Step Installation and Troubleshooting Guide
Here are some scenarios where you might need the Microsoft Visual C++ 2022 x64 Minimum Runtime:
. This "Minimum Runtime" is typically a sub-component managed by the main installer rather than a standalone file you download separately for typical use. Official Download Details
I can provide the specific steps or the exact, older runtime version if the 2022 package doesn't solve it. Latest Supported Visual C++ Redistributable Downloads
Visual C++ 2022 covers all versions back to 2015. Installing 2022 will update and support apps built for 2015, 2017, and 2019.
Microsoft uses a split packaging system to optimize updates and application deployment.
: Supported on Windows 10, 11, and modern Windows Server versions (2016–2025). Common Errors
I can provide specific registry fixes or command-line scripts tailored to your system. Share public link
If prompted, select . If Repair fails, restart the installer and select Install . Reboot your computer completely.
With the information and tools provided in this guide, you should be able to download, install, and troubleshoot the Microsoft Visual C++ 2022 x64 Minimum Runtime with confidence. Keep your system up to date, always download from official sources, and enjoy error‑free application launches.
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.