If you found this and would like to adapt it to your own project, make sure to verify your Quad-SPI pin out in STM32CubeMX by opening audio_external_loader.ioc. Regenerate the code if you end up changing the pin locations. Ensure you compile only using the no optimization flag -O0 and no other optimization levels.