Serial USB differences F413/F407

Report here problems in any of ChibiOS components. This forum is NOT for support.
hybridA
Posts: 32
Joined: Wed Jan 12, 2022 7:15 am
Has thanked: 10 times
Been thanked: 5 times

Serial USB differences F413/F407

Postby hybridA » Fri Feb 03, 2023 8:10 am

I'm porting code from an older board (running on F413) to a newer version with F407. I'm using Serial USB terminal for sending debugging data from the MCU to the PC. I noticed that the USB device didn't show up in dmesg/lsusb, so I stripped the code down to where all it does is

Code: Select all

sduObjectInit(&SDU1);
sduStart(&SDU1, &serusbcfg);
usbStart(serusbcfg.usbp, &usbcfg);


This works fine on the F413 but doesn't work on the F407.
I verified my USB clock is running correctly at 48MHz.

I ultimately found a work-around for this so USB enumerates OK on the 407:
In stm32_registry.h, I had to change

Code: Select all

#define STM32_OTG_STEPPING                  1

to

Code: Select all

#define STM32_OTG_STEPPING                  2


I'm not exactly sure what that macro does, if that's a bug or if this is just masking a configuration issue on my side.

Thanks

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Serial USB differences F413/F407

Postby Giovanni » Fri Feb 03, 2023 8:38 am

Moving in "bug reports".

This is strange because F407 is very old and the driver is known to work, I need to verify on my old board and then on a newer board again.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 5 guests