Running the sd_card example (in esp-idf) on ESP32 LyraT 3.4
Posted: Wed Feb 08, 2023 1:20 am
I have been trying to get the "sd_card" example provided in the "esp-idf" library to run on my ESP32 LyraT 3.4
I am very new to the C++ environment and ESP32 Development. I have successfully installed both esp-idf and esp-adf frameworks. I have been able to compile and run many of the provided esp-adf example programs. However, I am trying to write an application that uses POSIX and C standard library functions to work with files on the sd card and all the examples for the LyraT board utilize streams that I don't yet fully understand.
I do understand the method used to initialize the sd card that is built into the LyraT board is different than external sd cards that are attached to non audio boards. I tried to copy/paste the "audio_board_sdcard_init" function from the board.c program located in the esp-adf/components/audio_board/lyrat_v4_3 library, and put that code in the "sd_card" example program, but I can't seem to make that work.
Would someone please point me in the right direction?
Thanks in advance for any assistance.
Mike
I am very new to the C++ environment and ESP32 Development. I have successfully installed both esp-idf and esp-adf frameworks. I have been able to compile and run many of the provided esp-adf example programs. However, I am trying to write an application that uses POSIX and C standard library functions to work with files on the sd card and all the examples for the LyraT board utilize streams that I don't yet fully understand.
I do understand the method used to initialize the sd card that is built into the LyraT board is different than external sd cards that are attached to non audio boards. I tried to copy/paste the "audio_board_sdcard_init" function from the board.c program located in the esp-adf/components/audio_board/lyrat_v4_3 library, and put that code in the "sd_card" example program, but I can't seem to make that work.
Would someone please point me in the right direction?
Thanks in advance for any assistance.
Mike