cancel
Showing results for 
Search instead for 
Did you mean: 

Is the STM32F446 compatible with the STM32F4xx USB OTG Driver?

mluessi
Associate II
Posted on September 18, 2015 at 23:30

I have been working on porting code for a STM32F405 based board to a newer board that uses the STM32F446. I have been having troubles getting USB to work. See [DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/STM32F446%20configure%20PLLSAI%20for%2048MHz%20%28USB%29%20clock&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx?Paged%3DTRUE%26p_StickyPost%3D%26p_DiscussionLastUpdated%3D20150917%252011%253a11%253a41%26p_ID%3D57709%26View%3D%257bF47A9ED8%252dE726%252d42BE%252dACED%252d732F13B66581%257d%26FolderCTID%3D0x012001%26PageFirstRow%3D41]previous post. I'm quite sure that the USB clock is configured correctly, but I can't get the USB device to work.

My code uses the ''STM32F105/7xx, STM32F2xx and STM32F4xx USB OTG Driver'' version 2.1.0 and ''STM32F105/7xx, STM32F2xx and STM32F4xx USB Device Library'' version 1.1.0. Does anyone know if these libraries are compatible with the STM32F446? I compared the reference manuals for the STM32F446 and the STM32F405 and there seem to be some differences. E.g., the 405 supports 3 endpoints, while the 446 supports 5 also the number of  Tx-IN FIFOs is different.

Has anyone successfully used these libraries with the STM32F446 or does anyone know what would need to be changed to make them work? 
5 REPLIES 5
Nesrine M_O
Lead II
Posted on September 21, 2015 at 11:50

Hi martin,

I confirm that the STM32_USB_OTG_Driver V 2.1.0 doesn't support the STM32F446. I will report this point to our development team as an enhancement request.

-Syrine –
brent
Associate II
Posted on August 04, 2017 at 04:09

Hello, I too am having this issue after migrating from an STM32F407 to the F4 Is an updated example available from ST?

ELMHIRI.Syrine

Thank you for your help!

Max
ST Employee
Posted on August 04, 2017 at 07:30

The support for for STM32F446 was added in revision V 2.2.0 available

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-standard-peripheral-libraries-expansions/stsw-stm32046.html

.

Did you try this version?

brent
Associate II
Posted on August 05, 2017 at 20:52

 ,

 ,

Hi

to_deletergalbany

‌  ,- thank you for ,the quick reply.

I inspected the v2.2.0 example, and here's what I found:

* I did not see a reference to the STM32F446 in the VCP example - neither in the readme.txt nor in the usb_bsp.c initialization code. ,

* The VCP_Loopback has a reference to the 446, but interpreting the ♯ defines in usb_bsp.c it seems like it's only pertaining to HS Device with ULPI_PHY.  ,What I need is a VCP FS (full speed) device. ,

I do see in both projects there is ♯ defines for F446 in ,system_stm32F4xx.c - for configuring the PLL.  ,

Question:

Is the F446 software-compatible with the F407 for USB FS (full speed) device?

 ,

Is the actual compatibility difference around the PLL setup?

The board I have has pin 11/12 connected to USB, with an 8MHz external crystal. ,

Overall - what I need is to adapt my working USB ,Full speed Device VCP code for the 407 to now work with the 446. ,

Thank you again for your help,

-Brent

Posted on August 22, 2017 at 07:02

Sorry for the late answer,

to the extend of my knowledge it should be compatible.