2014-07-31 07:22 PM
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: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/public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/Why%20can%27t%20I%20enable%20USB%20and%20CAN%20simultaneously%20using%20STM32CubeMX&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21¤tviews=11
. #stm32cubemx-stm32f303x-can-usb2014-09-11 12:36 AM
Hello,
This is indeed an issue in STM32CubeMX implementation to be fixed for the next 4.4 release. For most of STM32F3 MCUs, USB and CAN have separated SRAMs: the peripherals can be used simultaneously. On STM32F302x6/x8 products, when the CAN clock is enabled only the first 768 bytes are available to USB while the last 256 bytes are used by CAN. Since they can't overlap, it is safe to use both simultaneously as well. Thank you for pointing out the issue.2014-09-11 06:03 AM