SD CARD

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
surfa2000
Normal user
Posts: 8
Joined: 28 Sep 2019, 18:53

SD CARD

#1 Post by surfa2000 » 15 Oct 2019, 21:51

Hi I hope someone may be able to help.

I am looking to compile the firmware with SD card support.

Whenever I try with the #define FEATURE_SD within the ESPEasy-Globals.h uncommented it fails to build with lots of errors such as

src\src/Commands/MQTT.h:10:5: error: cannot convert 'const char*' to 'const __FlashStringHelper*' for argument '2' to 'String Command_GetORSetBo
ol(EventStruct*, const __FlashStringHelper*, const char*, bool*, int)'

I woulc be grateful if someone could also try to see if it's an issue with my environment or something else?

Thanks

kiemtienspeed
Normal user
Posts: 1
Joined: 16 Oct 2019, 06:59

Re: SD CARD

#2 Post by kiemtienspeed » 16 Oct 2019, 07:33

I have encountered the same situation as you and have not had a fix. Maybe I'll buy another SD

TD-er
Core team member
Posts: 1922
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: SD CARD

#3 Post by TD-er » 16 Oct 2019, 09:47

kiemtienspeed wrote:
16 Oct 2019, 07:33
I have encountered the same situation as you and have not had a fix. Maybe I'll buy another SD
Just curious.
The original post is about compiler issues and you are thinking about using another SD card?
What is the idea behing it?

@surfa2000.
I will have a look and see if I can test whether there is a problem in building with the FEATURE_SD flag enabled.
I have to admit, I have not compiled it using that flag for a while. (also not tested it myself)

surfa2000
Normal user
Posts: 8
Joined: 28 Sep 2019, 18:53

Re: SD CARD

#4 Post by surfa2000 » 17 Oct 2019, 18:25

TD-er wrote:
16 Oct 2019, 09:47

@surfa2000.
I will have a look and see if I can test whether there is a problem in building with the FEATURE_SD flag enabled.
I have to admit, I have not compiled it using that flag for a while. (also not tested it myself)
Hi TD-er thanks for taking the time to investigate the potential issue. Really appreciate your time on this.

surfa2000
Normal user
Posts: 8
Joined: 28 Sep 2019, 18:53

Re: SD CARD

#5 Post by surfa2000 » 24 Oct 2019, 21:33

Hi - has anyone else had issues compiling with the SD card featur eneabled. I don''t know what I am missing. Thanks

arnemauer
Normal user
Posts: 1
Joined: 20 Sep 2019, 19:39

Re: SD CARD

#6 Post by arnemauer » 26 Oct 2019, 17:28

Same problem here :( is there already a fix?

I tried to compile 03102019 and 03092019 but both fails to compile.

surfa2000
Normal user
Posts: 8
Joined: 28 Sep 2019, 18:53

Re: SD CARD

#7 Post by surfa2000 » 29 Oct 2019, 21:33

Thanks for the confirmation. What is the best way to request a fix? Is it via github although I am not familiar with doing it there.

TD-er
Core team member
Posts: 1922
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: SD CARD

#8 Post by TD-er » 29 Oct 2019, 21:50

surfa2000 wrote:
29 Oct 2019, 21:33
Thanks for the confirmation. What is the best way to request a fix? Is it via github although I am not familiar with doing it there.
I am already working on it, but the fix is a lot bigger than I expected it would be.

surfa2000
Normal user
Posts: 8
Joined: 28 Sep 2019, 18:53

Re: SD CARD

#9 Post by surfa2000 » 31 Oct 2019, 21:40

TD-er wrote:
29 Oct 2019, 21:50
I am already working on it, but the fix is a lot bigger than I expected it would be.
Sorry to hear it's turned into a bigger fix than anticipated. Great to hear you are working on it and appreciate the update.

Droscovi
Normal user
Posts: 1
Joined: 24 Nov 2019, 19:23

Re: SD CARD

#10 Post by Droscovi » 24 Nov 2019, 19:31

I have been following the SD compile issue on Github and noticed it appears to be solved?

"SD Card Value Logger Enable #2700" and "SDFS/SD make F() strings appear in RODATA, not flash #6767" issues have made some great progress. Release mega-20191116 release notes include "[SD] Allow to compile with FEATURE_SD defined".

Can were now compile with SD? I have tried to uncomment some SD strings and include some SD libraries based on the developments on Github but I still can't seem to get a successful compile.

TD-er
Core team member
Posts: 1922
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: SD CARD

#11 Post by TD-er » 24 Nov 2019, 21:07

I have not tried since that fix has been merged.
Not sure if all issues are now solved and for sure I have not tested the code for it :)

surfa2000
Normal user
Posts: 8
Joined: 28 Sep 2019, 18:53

Re: SD CARD

#12 Post by surfa2000 » 04 Dec 2019, 21:28

Thanks for the hard work on this. Unfortuantly doesn't compile for me either with similar issue with SD card libraries. Is there anything that we can try to make compilation sucessful?

Thanks again

TD-er
Core team member
Posts: 1922
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: SD CARD

#13 Post by TD-er » 04 Dec 2019, 21:43


surfa2000
Normal user
Posts: 8
Joined: 28 Sep 2019, 18:53

Re: SD CARD

#14 Post by surfa2000 » 05 Dec 2019, 21:04

TD-er wrote:
04 Dec 2019, 21:43
You can try to build this PR:
https://github.com/letscontrolit/ESPEasy/pull/2798
Hi TD-er - thanks for this appreciate your help. That has gone through the build process. I look forward to testing. Thanks again!

TD-er
Core team member
Posts: 1922
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: SD CARD

#15 Post by TD-er » 05 Dec 2019, 21:49

I also prepared a test build for it: https://www.dropbox.com/s/oajoktd46u364 ... 8.zip?dl=0

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests