Resolved! Race condition with f_mount()?
I'm using FatFs without RTOS, and quite often the f_mount() call will fail. Right now it always fails, but in a previous version of my code it failed only 20%. My current mount code (using HAL) looks like if (f_mount(&fatfs, "", 1)) led_on_abo...