Page 1 of 3

ESP32 4Bit SD-Mode Init problem

Posted: Mon Jan 27, 2025 2:27 pm
by stefan.erni
Hi Ben

I get a problem to compile to hex When I'm use the the 4Bit SD-Mode Init command

Normally this works without a problem with the 4Bit SD-Mode Init command of the card.
I do the same as with the other programs. But this one don't compile. I have already tried many things

Code: Select all

C:/Users/stefan.erni/Desktop/esp-idf-2/mtxesp32s_sdkconfig/main/esp-project.c:277:21: error: implicit declaration of function 'FC_CAL_FILE_ReadByteFromFile_2' [-Werror=implicit-function-declaration]
  277 |     if (FCL_DATA_BYTE == 0)


Re: ESP32 4Bit SD-Mode Init problem

Posted: Mon Jan 27, 2025 2:59 pm
by medelec35
Hi Stefan.
Test_SD_post_new.fcfx compiles for me OK.
Have you got all the latest full library updates?

Re: ESP32 4Bit SD-Mode Init problem

Posted: Mon Jan 27, 2025 3:46 pm
by stefan.erni
Hi Martin

Very good that it works for you.
I changed the menu config and now it works again.
I test far and append string works perfect.
I still have problems with writing the sector.
The file remains empty.

Re: ESP32 4Bit SD-Mode Init problem

Posted: Mon Jan 27, 2025 4:19 pm
by medelec35
Hi Stefan, thank you.
I have added the bug to bugs list.
It will be sorted ASAP

Re: ESP32 4Bit SD-Mode Init problem

Posted: Tue Jan 28, 2025 1:35 pm
by stefan.erni
Hi Martin

Thank you,

First the good news. I have done several 12 hour long tests, saved continuously, and have not a single problem.

But a few commands don't seem to work properly yet
- local array append give problems to compile, you can see when you activate them in the macro, but with global array it compiles.
2025-01-28_10-54-45.PNG
2025-01-28_10-54-45.PNG (29.26 KiB) Viewed 8816 times
- AppendByteArray is appending just one letter
2025-01-28_14-03-18.PNG
2025-01-28_14-03-18.PNG (24.19 KiB) Viewed 8816 times
2025-01-28_14-01-52.PNG
2025-01-28_14-01-52.PNG (20.22 KiB) Viewed 8816 times
Would it be possible to make the change to the next sector much faster?
2025-01-28_14-21-59.PNG
2025-01-28_14-21-59.PNG (54.86 KiB) Viewed 8816 times

Re: ESP32 4Bit SD-Mode Init problem

Posted: Thu Jan 30, 2025 6:05 pm
by stefan.erni
Hi Martin

There is still a small problem. I use the option long filename support. This option must also be selected in the menu. If this is not done, my test will not work for you. I have changed the longname to a short in the test program.

program with shortname:
Test_SD_post_ShortName.fcfx
(50.38 KiB) Downloaded 36 times
with shortname:
2025-01-30_18-44-09.PNG
2025-01-30_18-44-09.PNG (5 KiB) Viewed 8786 times
program with longname need a change in menue:
2025-01-30_18-37-28.PNG
2025-01-30_18-37-28.PNG (5.41 KiB) Viewed 8786 times
2025-01-30_17-19-16.PNG
2025-01-30_17-19-16.PNG (32.98 KiB) Viewed 8786 times

Re: ESP32 4Bit SD-Mode Init problem

Posted: Thu Jan 30, 2025 6:30 pm
by medelec35
Hi Stefan.
My plan is I will be looking into this tomorrow.

Re: ESP32 4Bit SD-Mode Init problem

Posted: Wed Feb 12, 2025 1:01 pm
by stefan.erni
Hi Martin

I downloaded the component from the Flowcode website and looked at it.
But this is probably an old version. Can you please give me the current version?

Re: ESP32 4Bit SD-Mode Init problem

Posted: Thu Feb 20, 2025 4:30 pm
by stefan.erni
Hi Martin

I have looked at the component and WriteByteToBuffer, ReadFileLength do not work and are perhaps not yet implemented,
or I still don't understand exactly how it works.
During the test I did not notice any difference if I change the clock from 20MHz to 40Mhz.
Also no difference if I choose 4bit or 1bit mode. Both equally fast


from component WriteByteToBuffer:
2025-02-20_17-13-38.PNG
2025-02-20_17-13-38.PNG (25.65 KiB) Viewed 5420 times
from component ReadFileLength:
2025-02-20_17-14-16.PNG
2025-02-20_17-14-16.PNG (32.06 KiB) Viewed 5420 times

Re: ESP32 4Bit SD-Mode Init problem

Posted: Thu Feb 27, 2025 10:03 am
by stefan.erni
Hi Martin

Some news about the sd-card problem?