ESP32 4Bit SD-Mode Init problem

Any bugs you encounter with Flowcode should be discussed here.
medelec35
Matrix Staff
Posts: 1878
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 614 times
Been thanked: 632 times

Re: ESP32 4Bit SD-Mode Init problem

Post by medelec35 »

Hi Stefan.
Apologies for the delay.
I will make this a priority to sort the issue out for you.
Martin

medelec35
Matrix Staff
Posts: 1878
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 614 times
Been thanked: 632 times

Re: ESP32 4Bit SD-Mode Init problem

Post by medelec35 »

Hi Stefan.
I have thoroughly looked into this.
Unfortunately, the write functions are not supported, which is the reason they don't work correctly.
Many thanks for bringing this to our attention.

What I'm going to do is check all the functions, and if not supported I will add a tooltip with states its not supported.
Martin

stefan.erni
Valued Contributor
Posts: 988
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 189 times
Been thanked: 216 times

Re: ESP32 4Bit SD-Mode Init problem

Post by stefan.erni »

Hi Martin

Thanks Martin
if the Sd-card works fast enough, I can do without some modes.

I guess these 3 points would already help me, to store data fast enough.

1. change to the next sector much faster
2. SPI clock should work and set to 50Mhz as an option
3. 4Bit mode working (there is no difference to 1Bit detectable)

stefan.erni
Valued Contributor
Posts: 988
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 189 times
Been thanked: 216 times

Re: ESP32 4Bit SD-Mode Init problem

Post by stefan.erni »

Hi Martin

1. change to the next sector much faster

It would already help if this time was reduced by half. It's just a change to the next sector

reduce the "orange" time:
2025-03-12_16-36-12.PNG
2025-03-12_16-36-12.PNG (150.42 KiB) Viewed 1182 times

stefan.erni
Valued Contributor
Posts: 988
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 189 times
Been thanked: 216 times

Re: ESP32 4Bit SD-Mode Init problem

Post by stefan.erni »

Hi Martin

I made a second version of my programme. I have used the normal SD card component and am testing it now with this
I have replaced all commands.
i guess it is slow but i can maybe write sectoren with 512byte like by the PIC32

The pins are like this:
2025-03-13_17-16-30.PNG
2025-03-13_17-16-30.PNG (221.03 KiB) Viewed 1081 times
config the Sd component:
2025-03-13_18-03-47.PNG
2025-03-13_18-03-47.PNG (35.76 KiB) Viewed 1081 times
add 2 pins and set to high
2025-03-13_18-04-53.PNG
2025-03-13_18-04-53.PNG (5.89 KiB) Viewed 1081 times

stefan.erni
Valued Contributor
Posts: 988
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 189 times
Been thanked: 216 times

Re: ESP32 4Bit SD-Mode Init problem

Post by stefan.erni »

Hi Martin

I can write sectors with the old SD component, is this also possible with the 4bit SD component?
And can the 4Bit Sd component also work on an STM32?

Post Reply