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?
Scroll to the bottom and expand or System devices .
Locate the desktop shortcut or primary .exe file. Right-click the icon and select Properties . Open the Compatibility tab.
Open your installation folder and look for a "Start Emulator" or green traffic light icon. Run this as an Administrator to bridge the software to your hardware ID. Check Driver Status: Device Manager
Upon reboot, press or 7 to choose Disable driver signature enforcement . Once Windows loads, try running Autodata again. Technical Troubleshooting Matrix Root Cause Runtime Error 217 Broken Sentinel service hooks. Reinstall Sentinel System Driver. Dongle Not Found Registry mismatch or wrong USB port. Move to USB 2.0 port or remap registry keys. Hardware Info Mismatch Changed Motherboard / CPU / BIOS ID. Re-run GetUID.exe and generate a new key.
To resolve this, you must re-generate a valid license file using your current PC's hardware ID. Navigate to your Autodata installation or "Keygen" folder.
You upgraded your hard drive, changed the motherboard, or updated your network adapter
: Sometimes, reinstalling the drivers for the dongle can resolve recognition issues.
Newer Windows environments prevent background emulators from directly querying hardware info unless explicit legacy rights are granted.
This document is for informational purposes. Always refer to official AutoData documentation or your local distributor for license-specific procedures.
A corrupted or missing virtual USB controller link often causes communication failures between the application and security architecture.
The Windows Registry entries that store the "Hardware ID" have been altered or deleted.
Choose a and reboot your PC when finished. 4. Switch USB Ports (For Physical Dongles)
If the virtual security key configuration is incomplete or damaged, Windows will fail to establish a link between the software and the hardware profile. Press Windows Key + X and select .
Double-click the new .reg file to merge it into your Windows Registry. 4. Disable Antivirus and Windows Defender
This troubleshooting guide explores why this error occurs and provides a sequence of clear methods to resolve it. Understanding the Roots of the Error
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.