cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 (Portenta H7) HAL for USB audio to host - not working

tjaekel
Lead

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?

1 ACCEPTED SOLUTION

Accepted Solutions
FBL
ST Employee

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.

View solution in original post

1 REPLY 1
FBL
ST Employee

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.