Closed diegoparrilla closed 9 months ago
I have found this error when migrating to this new repo from the old one.
023-09-27 18:24:03 --> assertion "mutex_is_initialized(&spi_p->mutex)" failed: file "MY_WORKSPACE/atarist-sidecart-raspberry-pico/fatfs-sdk/src/sd_driver/SPI/spi.c", line 181, function: spi_lock
I think I have updated the spi_ifs and sd_cards configuration objects correctly, and the initialization has not changed.
spi_ifs
sd_cards
Reviewing the code, the mutex property of the spi_t is not initialized. Should my code do it, or should the init functions?
mutex
spi_t
So, I don't know if the repository is ready or if I should return to the old one.
Any suggestions to fix the problem?
Nevermind, it was a configuration error. The sd_cards[*].spi_if_p value still contained the reference to the spi_t object instead of the sd_spi_if_t.
sd_cards[*].spi_if_p
sd_spi_if_t
I will delete
I have found this error when migrating to this new repo from the old one.
023-09-27 18:24:03 --> assertion "mutex_is_initialized(&spi_p->mutex)" failed: file "MY_WORKSPACE/atarist-sidecart-raspberry-pico/fatfs-sdk/src/sd_driver/SPI/spi.c", line 181, function: spi_lock
I think I have updated the
spi_ifs
andsd_cards
configuration objects correctly, and the initialization has not changed.Reviewing the code, the
mutex
property of thespi_t
is not initialized. Should my code do it, or should the init functions?So, I don't know if the repository is ready or if I should return to the old one.
Any suggestions to fix the problem?