Skip to content

STM32: Feather F405 stuck in port.c #2861

@hierophect

Description

@hierophect

The Feather STM32 currently hangs at startup and cannot connect to USB - it appears we may have had some form of regression later in #2685 that I missed in reviews. On the master branch the Feather will hang indefinitely at the LSE setup flag while loop in port.c (while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET). My PR #2866 attempts a fix by implementing a timeout that switches to the LSI in the event of a LSE failure. However, even with these changes, the board does not connect. Analyzing with GDB shows only constant iteration through port_get_raw_ticks, but I'm unsure if that's accurate as to what's actually going on during runtime.

Confirmed only on the STM32F405 Feather for now. I'll update as I test other boards.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions