AnsweredAssumed Answered

Bug Report STM32CubeMX v4.3, can't enable USB and CAN at the same time for STM32F303x

Question asked by maggie.roxas on Aug 1, 2014
Latest reply on Sep 11, 2014 by maggie.roxas
I'm using STM32CubeMX v4.3 to generate my STM32F303x custom board pins.
I need both USB and CAN enabled.

I can set USB (as FS Device) pins as:
       
  • PA11: USB_DM
  •    
  • PA12: USB_DP
And CAN pins as:
       
  • PD0: CAN_RX
  •    
  • PD1: CAN_TX
But for some reason, I can't enable USB and CAN at the same time.

When I try to enable USB, CAN can't be enabled anymore (grayed-out) and on mouse hover, says:
       
  • "CAN Not Available: CAN IP can be selected if USB IP is not selected"
When I try to enable CAN, USB can't be enabled anymore (grayed-out) and on mouse hover, says:
       
  • "USB Not Available: USB IP can be selected if CAN IP is not selected"
Acc. to clive1:

"In the original F1 design CAN and USB shared a common 512 byte SRAM buffer, this is supposedly not the case with the F303 design, but the logic in CubeMX might still be blocking this option."

Please confirm if this is an STM32CubeMX bug for STM32F303x devices.

Related forum here.

Outcomes