2017-03-18 09:13 AM
Hi Guys,
I want to implement the STM32F303VET6 for possible DFU or CDC / HID . I am a little bit mixed up with the schematics of the USB ST-LINK for USB interfacing. Is the 1,5k PullUp on D+ mandatory? And if it is, do i need to implement the possibility to activate or deactivate it? the schematics from the ST-LINK use a GPIO for that purpose but where in the middlewre software do I need to implement that PullUp switching?
When I use the STM32CubeMX software and want to activate the USB only both differential lines are set but no aditional GPIO port for the PullUp. On the other hand the datasheet recommends to use the PullUp since it is requested in the USB 2.0 spec. So if the PullUp is a must, why is there no true description on how to implement that PullUp right in software and layout?
best regards
Benjamin
#implementation #1.5k-pull-up #usb #stm322017-03-18 10:06 AM
Newer STM32 Usb ips seem to intergrate the pull up to simplify the design. Check schematics and reference manuals.
2017-03-18 08:35 PM
It's been a while since I did an STM32F303-based board. It did require that I supply the 1.5K pull-up on D+. I solved that issue by using an STF202-22T1G IC which has an integrated pull-up and the 22R termination resistors which you will also need.
I recommend switching the the L4 parts if you can. They have a much improved USB interface and are more power efficient.
2017-03-18 11:45 PM
Agreed, USB device without crystal or USB Host from 32768Hz external crystal through MSI are additional upgrades.
2017-03-19 05:49 AM
Hello, thanks for the advise, but I cannot switch anymore because I am far to deep in the realization of the project
2017-03-19 06:13 AM
Thanks for your reply. Like I answered
Centauris.Alpha
I can't switch to another product, since I am far to deep in the design process. I must say that I am pretty disappointed from STM for not making it clear enough in the features list of the STM32F303xx that I need additional components for using the USB-feature properly on the STM32F303xx . As far as I have overlooked theSTF202-22T1G the Chip doesn't have the possibility to switch the PullUp on or off. But isn't this mandatory in complinace with the USB 2.0 spec (see attached image)?
If this chip is enough for my purposes (DFU, CDC, HID) then I will go for it. Spares me also the EMI, ESD chip from TI.
best regards
Benjamin
2017-03-19 06:19 AM
Mhh.. I am also not sure if I need another USB PHY chip, since the block diagram of the STM32F303xx shows an external Analog transceiver:
What Do you think?
2017-03-19 09:12 AM
Haven't looked at the ref man for this part. On stm32f437 there are 2 usb ips to be accurate: a full speed with embedded analog transceiver and a high speed external flavour which uses ulpi digital interface witg external chipset. Both can be activated in parallel and there was a dual usb core example. In somer newer part such as stm32f723, the 600+ mbps class phy is embedded. So far as i know.
2017-03-19 10:41 AM
Mhh..this sounds like I have to supply the USB PHY externally. Damn.
2017-03-19 12:42 PM
Whether this is all you need really depends on too many factors to list, but include your power domains, the application needs and the expected device behavior. IIRC, you need to be able to de-assert the pull-up if the device is to remain physically connected but logically disconnected from the bus.
For my needs, this chip is all that was required between the USB connector and the D+/D- pins on the STM32F303CC.