Go Down

Topic: esp32 sd card problems (Read 732 times) previous topic - next topic

lucadjr

Mar 22, 2020, 12:25 am Last Edit: Mar 22, 2020, 12:49 am by lucadjr
Hi all!
i started apart a project to test the sd read/write functions with succes than i created separeted functions to use in my code to my wroom32 for a weather station and every 10 seconds i need to append data in a txt file. I will not upload my code couse is very long in multiple pages (if i comment the write to sd function everything is fine), anyway
I write once in the setup and then in the loop every 10sec using call to the same function.
For testing i make the function write in the "/test.txt" file always "test" string, in the setup it works (i also checked the file in sd it is there written even multiple lines if didnt cancel the file) but when got the first call in the loop i got guru meditation error, it seems to happen here:
Code: [Select]
File myFile = SD.open(path, FILE_APPEND);
 

The same sd read/write code (very simple just taken from lib) in a stand-alone project work correct even in the loop call, im afraid is an overwriting memory problem.

Code: [Select]
Initializing SD card...
initialization done.
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x4014f799  PS      : 0x00060230  A0      : 0x800da592  A1      : 0x3ffb18b0 
A2      : 0x000f4240  A3      : 0x3ffb1ca4  A4      : 0x3ffb1c50  A5      : 0x3ffc87b8 
A6      : 0x00ff0000  A7      : 0xff000000  A8      : 0x800ef511  A9      : 0x3ffb19d0 
A10     : 0x3ffb1c1c  A11     : 0x3ffc777c  A12     : 0x00000000  A13     : 0x00000000 
A14     : 0x3ffd4e03  A15     : 0x00000001  SAR     : 0x00000009  EXCCAUSE: 0x0000001c 
EXCVADDR: 0x000f4240  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xfffffffd 

Backtrace: 0x4014f799:0x3ffb18b0 0x400da58f:0x3ffb18d0 0x400da849:0x3ffb1900 0x400dad0d:0x3ffb1930 0x400f0a26:0x3ffb1970 0x400ed1f1:0x3ffb1990 0x400ee52e:0x3ffb19b0 0x400ee67d:0x3ffb19d0 0x400ef50e:0x3ffb1a00 0x400f064c:0x3ffb1c70 0x4010a4c9:0x3ffb1de0 0x4000bcc5:0x3�

 

Someone have already experienced it??

ilioSS

Hello lucadjr,
Most probably check sequense of the functions in the script.
Alternatively check on guru mediation error.
I have the ideer it has something to do with wrong toming for the processor.
Good luck
ilioSS

Go Up