Teensy 4.x + ESP32 Stack

Just did a quick AI check and supposedly the ESPC6 SDIO IF operates in slave mode and somehow allows you to use AT commands to it. Otherwise you will need to write an SDIO driver for the ESPC6 side...
 
I've been using AI (Gemini, free) to assist my minimal software skills in developing moderately complex code for the Waveshare ESP32-P4-WIFI6-Touch-LCD-XC which also has the C6, in platformio (before I look like a traitor ... the Waveshare communicates with two teensys :) ). And it's all working pretty well now. I had built much of the code myself, pre-AI, but there's no way I would have figured the SDIO aspects out myself ...
 
Presumably, one could adapt the SDIO driver from SDFAT: https://github.com/greiman/SdFat/blob/master/src/SdCard/TeensySdio/TeensySdio.cpp

Edit: You could take a look at https://github.com/espressif/idf-extra-components/blob/master/esp_serial_slave_link/essl_sdio.c , too - that code it not for Teensy but shows the logic behind it.

Edit2: If you use SdFat as a starting point, I recommend removing the workarounds for the Teensy's missing pull-up resistors and adding the required resistors to the board instead. I don't remember the exact details, though.

microSD_FPC_bottom.png


So the first step would be to build some hardware and get simple communication between T4 and C6 up and running. Once that’s done, the biggest milestone is already behind you—you can also borrow a lot from the ESP code.

Edit 3: Kicad adapter files as starting point: https://github.com/newdigate/teensy-eurorack/tree/master/hardware/board
 

Attachments

  • Simplified_SDIO_Card_Spec.pdf
    426 KB · Views: 31
Last edited:
Presumably, one could adapt the SDIO driver from SDFAT: https://github.com/greiman/SdFat/blob/master/src/SdCard/TeensySdio/TeensySdio.cpp

Edit: You could take a look at https://github.com/espressif/idf-extra-components/blob/master/esp_serial_slave_link/essl_sdio.c , too - that code it not for Teensy but shows the logic behind it.

Edit2: If you use SdFat as a starting point, I recommend removing the workarounds for the Teensy's missing pull-up resistors and adding the required resistors to the board instead. I don't remember the exact details, though.

microSD_FPC_bottom.png


So the first step would be to build some hardware and get simple communication between T4 and C6 up and running. Once that’s done, the biggest milestone is already behind you—you can also borrow a lot from the ESP code.

Edit 3: Kicad adapter files as starting point: https://github.com/newdigate/teensy-eurorack/tree/master/hardware/board
The address should be (Down at the bottom of the page):-
https://github.com/newdigate/teensy-eurorack/tree/master/hardware/boards
 
Back
Top