Submitting a patch for integrated usb-phy on stm32f723

Report here problems in any of ChibiOS components. This forum is NOT for support.
User avatar
sabdulqadir
Posts: 49
Joined: Fri Mar 23, 2018 7:29 pm
Has thanked: 13 times
Been thanked: 4 times

Submitting a patch for integrated usb-phy on stm32f723

Postby sabdulqadir » Thu Dec 17, 2020 1:40 am

Hi,
Attached is the patch which I use to make the current code work with stm32f723ze target.
This target has internal USB-HS-PHY and support is not available in chibiOS. Included in the patch

- Board files included for stm32f723e_discovery board
- USB-CDC demo updated to support stm32f723e_discovery board
- Changes to OTGv1/hal_usb_lld.c and stm32_otg.h to support integrated PHY


Let me know if this is acceptable or if I need to change anything.

Thanks a lot,
AQ
Note: PHY initialization code is from cubemx.

User avatar
sabdulqadir
Posts: 49
Joined: Fri Mar 23, 2018 7:29 pm
Has thanked: 13 times
Been thanked: 4 times

Re: Submitting a patch for integrated usb-phy on stm32f723

Postby sabdulqadir » Sat Dec 19, 2020 5:18 pm

Hi,
Had to do a small correction to the above patch.

Line 940 in os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c changes,
from:
otgp->GCCFG = 0x00800000;
to:
otgp->GCCFG = GCCFG_PHYHSEN;

Sorry about that fellows.

Thanks,
AQ

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Submitting a patch for integrated usb-phy on stm32f723

Postby Giovanni » Sat Feb 13, 2021 10:20 am

bump


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 14 guests