2019-05-07 07:49 AM
I've got an old good F4-discovery board with STM32F407
Trying to run the "demonstrations" project from Cube library F4 version 1.24.0:
... Repository\STM32Cube_FW_F4_V1.24.0\Projects\STM32F4-Discovery\Demonstrations\MDK-ARM
Building with Keil MDK 5.26.
It builds without a hitch and blinks LEDs.
The green LED near the USB connector lights.
But when it comes to the USB joystick part - it hits the unaligned bug in stm32f4xx_ll_usb.c reported recently here (thanks!).
Fixed it. Then USB device fails to enumerate by a Win10 PC : failed read descriptors.
Increased stack size to 0x800.
Still no joystick.
Anyone knows how to get it working? Maybe the board is defective?
Thanks for any idea
-- pa
* Update:
Downloaded s/w package for he Discovery ver. 1.1.0 (en.stsw-stm32068.zip) and flashed existing binary on the board. Now it successfully enumerates (so the board is likely good, it's a software bug) ... but still does nothing when I move/tilt the board. Mouse cursor won't react.
2019-05-11 02:17 PM
Well it looks like the USB connector on my board is broken. Apologies for confustion.
-- pa