2024-04-25 08:09 PM
My STM32H747 (Portenta H7), with latest CubeHAL H7 drivers, fails on USB streaming, as USB audio from MCU to host (USB Digital Microphone).
It enters in USB FS IRQ handler all the time the branch with the "Incomplete ISO OUT". Nothing comes out to PC.
"Funny" is: if I let it run for a very, very long time - suddenly it works: the PC gets now my USB audio.
It tells me: something wrong with the ISO stream and the frame counter (or this "even and odd" issue, as found in Internet threads).
The only solution I have found: go back to an older version of the file "stm32h7xx_hal_pcd.c".
Now it works (actually, I am aware of this issue since years, I took this file from an older project where it works).
OK, STM provides examples, e.g. X-CUBE-AUDIO, but it is not for a H7 MCU.
Taking the USB files from there seems to be risky: it is not for the same MCU (even I would modify all includes of H7 header files), And a "Diff" on these files shows me some "dramatic" differences (where I cannot make a decision if it would be correct and could work).
Is there any chance that the H7 drivers (for USB, PCD) are "fixed" and working also on the very latest version?
Solved! Go to Solution.
2024-07-04 10:57 AM
Hi @tjaekel
Do you mean IsoIncomplete interrupt is asserted? If so, it means the device does not have time to send periodic isochronous data within the end of frame. Which product are you using and would you provide more details about your clock configuration? do you reproduce using our reference board?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-07-04 10:57 AM
Hi @tjaekel
Do you mean IsoIncomplete interrupt is asserted? If so, it means the device does not have time to send periodic isochronous data within the end of frame. Which product are you using and would you provide more details about your clock configuration? do you reproduce using our reference board?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.