Skip to main content
HKhan.1
Associate
June 27, 2020
Solved

STM32H743bi - use FDCAN2 and USB ULPI simultaneously?

  • June 27, 2020
  • 3 replies
  • 2420 views

Hello,

I am using Cube32MX for STM32H743bi IO multiplexing. first i added USB HS phy ULPI interface then see FDCAN2 not allowed in the tool and error message says it is in conflict with USB ULPI. However i manually checked there were certain pins for CAN2 classic and even FD available.

I want to know whether it s some bug or there is some internal MCU sharing between these two that i am unaware of. Else several options are available for FDCAN2 after consuming USB ULPI.

thnx

This topic has been closed for replies.
Best answer by Khouloud OTHMAN

Hello HKhan.1,

As I understand you have activated USB_OTG_HS and configured the External Phy, thus:

  • PB5 pin will be assigned automatically to USB_OTG_HS_ULPI_D7 .
  • PB12 to OTG_HS_ULPI_D5 .
  •  PB13 to OTG_HS_ULPI_D6 .

and if you refer to DS12110 Rev 7 Data Sheet: OTG_HS_ULPI_D7 , OTG_HS_ULPI_D5 and OTG_HS_ULPI_D6  can’t be remapped and can only be assigned respectively to  PB5 ,PB12 and PB13.

When enabling FDCAN2 two pins will be activated and backing to same reference:

  • FDCAN2_RX can be assigned to either PB5 or PB12
  • FDCAN2_TX can be assigned to either PB13 or PB6

Thus FDCAN2_RX can’t be assigned to any pin (since pB5 and PB12 are not available) and USB ULPI is in conflict with FDCAN2.

BR,

Khouloud.

3 replies

HKhan.1
HKhan.1Author
Associate
June 27, 2020

*STM32H743bi

Khouloud OTHMAN
Khouloud OTHMANBest answer
Technical Moderator
July 2, 2020

Hello HKhan.1,

As I understand you have activated USB_OTG_HS and configured the External Phy, thus:

  • PB5 pin will be assigned automatically to USB_OTG_HS_ULPI_D7 .
  • PB12 to OTG_HS_ULPI_D5 .
  •  PB13 to OTG_HS_ULPI_D6 .

and if you refer to DS12110 Rev 7 Data Sheet: OTG_HS_ULPI_D7 , OTG_HS_ULPI_D5 and OTG_HS_ULPI_D6  can’t be remapped and can only be assigned respectively to  PB5 ,PB12 and PB13.

When enabling FDCAN2 two pins will be activated and backing to same reference:

  • FDCAN2_RX can be assigned to either PB5 or PB12
  • FDCAN2_TX can be assigned to either PB13 or PB6

Thus FDCAN2_RX can’t be assigned to any pin (since pB5 and PB12 are not available) and USB ULPI is in conflict with FDCAN2.

BR,

Khouloud.

HKhan.1
HKhan.1Author
Associate
July 3, 2020

Thnx Khouloud, You are right. I actually confused with FDCAN2 Debug pins

Pavel A.
Super User
September 24, 2023

Yes, "external" means a separate chip.

 for me, USB Full Speed would be enough. Can I just use the internal FS Phy and use the VCP like normal? 

Yes, sure. See this.