You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in sdcard.c, function sdcard_mount calls spi_bus_initialize and fails if the SPI bus is already initialized
but sdcard_unmount does not call spi_bus_free to close the SPI bus
so if when sdcard_mount is called again after sdcard_unmount, it fails and it is not possible to access the sdcard anymore (because SPI but is already initialized and sdcard_mount fails).
this is a common use case when we create a first pipeline and it stops when the song is finished and we create a new one few minutes later to play an other song.
Expected Behavior
sdcard_unmount calls spi_bus_free or if impossible sdcard_mount does not fail if spi_bus_initialize returns an error
Actual Behavior
cannot call sdcard_mount after sdcard_unmount
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
problem with SPI and SD card initialization / deinitialization
problem with SPI and SD card initialization / deinitialization (AUD-5435)
May 28, 2024
Environment
Problem Description
in sdcard.c, function sdcard_mount calls spi_bus_initialize and fails if the SPI bus is already initialized
but sdcard_unmount does not call spi_bus_free to close the SPI bus
so if when sdcard_mount is called again after sdcard_unmount, it fails and it is not possible to access the sdcard anymore (because SPI but is already initialized and sdcard_mount fails).
this is a common use case when we create a first pipeline and it stops when the song is finished and we create a new one few minutes later to play an other song.
Expected Behavior
sdcard_unmount calls spi_bus_free or if impossible sdcard_mount does not fail if spi_bus_initialize returns an error
Actual Behavior
cannot call sdcard_mount after sdcard_unmount
The text was updated successfully, but these errors were encountered: