STM32F407 + USB + ULPI Interface

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F407 + USB + ULPI Interface

Post by Giovanni »

Hi,

That assertion means that a new transaction has been started before the old one has been completed. You should verify in the code. The stack trace should indicate you where the problem happens, see the caller functions.

In 16.1.x there is a new synchronous API for endpoint I/O in the USB driver, using that would prevent this kind of errors.

Giovanni
User avatar
DeusExMachina
Posts: 223
Joined: Tue Apr 03, 2012 5:08 am
Has thanked: 3 times
Been thanked: 3 times

Re: STM32F407 + USB + ULPI Interface

Post by DeusExMachina »

Thanks, I'll try
User avatar
DeusExMachina
Posts: 223
Joined: Tue Apr 03, 2012 5:08 am
Has thanked: 3 times
Been thanked: 3 times

Re: STM32F407 + USB + ULPI Interface

Post by DeusExMachina »

My problem was related to a poor PCB design. It was interference between an MCU running on 48 MHz and a USB3300 PHY (they are too close). When I tried the same code on WaveShare board with the same STM32F407 MCU and the same PHY ULPI driver works well. So, I had to finagle with the MCU freq, and it works now on 64MHz.
Post Reply