USB on STM32F446 issues Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
Ceco
Posts: 40
Joined: Tue Nov 27, 2012 12:16 pm
Been thanked: 3 times

USB on STM32F446 issues

Post by Ceco »

Hello.

After a few days of fight with the F446 and USB stack, we found the following:

F446 has a different USB hardware then other F4 micros. F446 has a OTG core identical with F7 series. :shock: After few changes in "defines" in the F7 manner now we have a success to enumarate the device. This is our progress for the moment. :)

So just to know - If you are using F446 - the USB must be threated like in F7!
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: USB on STM32F446 issues

Post by RoccoMarco »

Hi,
If I remember well this problem has been solved on trunk.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: USB on STM32F446 issues

Post by Giovanni »

Hi,

Moving in the bug reports section.

Giovanni
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: USB on STM32F446 issues

Post by RoccoMarco »

Code: Select all

/*===========================================================================*/
/* STM32F446xx.                                                              */
/*===========================================================================*/
#if defined(STM32F446xx)
....

/* USB attributes.*/
#define STM32_OTG_STEPPING                  2
#define STM32_HAS_OTG1                      TRUE
#define STM32_HAS_OTG2                      TRUE


Indeed we introduced STM32_OTG_STEPPING to handle this differences. Can you confirm you are not using trunk?


Edit: take a look here.
Ceco
Posts: 40
Joined: Tue Nov 27, 2012 12:16 pm
Been thanked: 3 times

Re: USB on STM32F446 issues

Post by Ceco »

Sure, we are using official 16.1.5.

I will check the trunk, thanks.
Post Reply