Page 3 of 4
Re: ESP32S3 SD-card init problem
Posted: Mon Aug 10, 2026 12:44 pm
by stefan.erni
Hi Ben
The SD card works with the old SD component, but I don't have any free SPI buses left because of the display and the AD converter.
I'm having trouble with the C code insert from You.
Does it just need to be in a C code component, or should it be added as a supplementary C code?
Re: ESP32S3 SD-card init problem
Posted: Thu Aug 20, 2026 4:36 pm
by stefan.erni
Hi to All
There is one remaining issue that I have not yet been able to identify or resolve.
The FC11 fails to initialize the SD card on this board.
However, the same SD card operates reliably with FC11 on other board, such as ESP32-S3 and ESP32-WROOM boards.
Interestingly, similar issues can also be observed on a SparkFun board with ESP32-S3 mini.
It's a small board that's placed underneath an Adafruit board, with an amplifier IC, a 24-bit A/D converter, and an SD card.
Fortunately, I can still make changes like I could still swap the pins from the card.

- 2026-08-20_17-08-43.PNG (235.98 KiB) Viewed 4327 times

- 2026-08-20_16-56-54.PNG (195.05 KiB) Viewed 4327 times
Re: ESP32S3 SD-card init problem
Posted: Fri Aug 21, 2026 12:18 pm
by stefan.erni
Hi to All
I ran a test on Ben's board and used the loop to initialize the card every 10ms .
I didn't use an SD card, but I checked it with the KO, and the signal was perfect.
Then I switched the clock to a free port (GPIO 19 and GPIO 20), and the clock was perfect there, too.
I added the same loop to my board
But the clock isn't working on my board. It's just always 0 volts.
Both are ESP32-S3 but my is a mini
loop for oscilloscope on Ben's board:

- 2026-08-21_12-29-47.PNG (24.45 KiB) Viewed 4295 times
Signal on oscilloscope:

- NewFile12.png (51.86 KiB) Viewed 4295 times
Re: ESP32S3 SD-card init problem
Posted: Tue Sep 15, 2026 9:25 am
by stefan.erni
Hi Ben
Would it be possible to provide me with the latest File_ESP32_SDMode component?
Re: ESP32S3 SD-card init problem
Posted: Tue Sep 15, 2026 11:10 pm
by BenR
Of course
It should be on the wiki but if it's not then this gthub contains nightly builds of the latest files straight from the source.
https://github.com/BenMatrixTSL/FlowcodeV11/
Here's the specific file you're after. Just click the Download raw file link.
https://github.com/BenMatrixTSL/Flowcod ... DMode.fcfx
Re: ESP32S3 SD-card init problem
Posted: Wed Sep 16, 2026 10:21 am
by stefan.erni
Hi Ben
Thanks. Creating my own component
File_ESP32_SDMode_erni worked out well !
But then I need a little help finding the code to return 0 for “OK” and 255 (>0) for “not OK.”

- 2026-09-16_10-53-50.PNG (323.13 KiB) Viewed 3317 times

- 2026-09-16_10-59-03.PNG (47.97 KiB) Viewed 3317 times

- 2026-09-16_11-16-25.PNG (40.14 KiB) Viewed 3317 times

- 2026-09-16_10-59-42.PNG (152.29 KiB) Viewed 3317 times
Re: ESP32S3 SD-card init problem
Posted: Wed Sep 16, 2026 11:39 am
by BenR
You likely need to look here.
C:\ProgramData\MatrixTSL\FlowcodeV11\CAL\ESP\ESP_CAL_File.c
The init function is defined as an embedded function which just calls the C CAL function.

- Screenshot 2026-09-16 113906.png (18.28 KiB) Viewed 3311 times
Re: ESP32S3 SD-card init problem
Posted: Wed Sep 16, 2026 12:42 pm
by stefan.erni
Hi Ben
I'm one step further.
In the .h file
On your board (with Devkit), the pins are set correctly. On my ESP32 S3 Mini, they're not. All are set to 0

- 2026-09-16_13-32-46.PNG (52.45 KiB) Viewed 3307 times

- 2026-09-16_13-28-57.PNG (52.24 KiB) Viewed 3307 times

- 2026-09-16_13-21-32.PNG (45.93 KiB) Viewed 3307 times
Re: ESP32S3 SD-card init problem
Posted: Wed Sep 16, 2026 12:57 pm
by stefan.erni
Hi Ben
I think I've found a solution.
I need to use $portA. The map initially has a value of 0 now

- 2026-09-16_13-54-18.PNG (45.32 KiB) Viewed 3304 times

- 2026-09-16_13-56-29.PNG (43.95 KiB) Viewed 3304 times
Re: ESP32S3 SD-card init problem
Posted: Wed Sep 16, 2026 2:02 pm
by BenR
Thanks Stefan I'll see if I can resolve this problem.