sometimes I get a Guru Meditation Error by running my code.
It is not all the time I get this error and a following reboot.
The error comes up when splitting the time_stamp tuple by this command: J=time_stamp[0]
Is there something illegal with my code?
Why is the time_stamp interpreted as ets Jun 8 2016 00:22:57 in the Logmessages?
I have no idea what is going wrong.
Has anyone a tip for me?
Thanks a lot in advance
Klaus
Code: Select all
from machine import RTC # ESP32-internal Real Time Clock
Clck=RTC()
# :
# previous code
# :
print("Report:")
time_stamp = Clck.datetime()
print(time_stamp)
end_ms = time.ticks_ms()
print("time_diff=")
delta = time.ticks_diff(end_ms, start_ms)
delta = delta / 1000
time_diff=delta
print(time_diff)
print(time_stamp)
J=time_stamp[0]
M=time_stamp[1]
T=time_stamp[2]
S=time_stamp[4]
Mn=time_stamp[5]
Sk=time_stamp[6]
YEAR=str(J)
print("YEAR="+YEAR)
MONTH=str(M)
print("MONTH="+MONTH)
DAY=str(T)
print("DAY="+DAY)
HOUR=str(S)
print("HOUR="+HOUR)
MINUTE=str(Mn)
print("MINUTE="+MINUTE)
SEC=str(Sk)
print("SEC="+SEC)
if int(DAY) <= 9:
DAY="0"+DAY
print("DAY="+DAY)
if int(MONTH) <= 9:
MONTH="0"+MONTH
print("MONTH="+MONTH)
if int(HOUR) <= 9:
HOUR="0"+HOUR
print("HOUR="+HOUR)
if int(MINUTE) <= 9:
MINUTE="0"+MINUTE
print("MINUTE="+MINUTE)
if int(SEC) <= 9:
SEC="0"+SEC
print("SEC="+SEC)
time_end=DAY+"."+MONTH+"."+YEAR+" "+HOUR+":"+MINUTE+":"+SEC
time_diffS = str(time_diff) # In SECn
print(time_end)
As Logmessages I get the following:
Report:
(2022, 6, 22, 2, 10, 50, 28, 960327)
time_diff=
6.675
(2022, 6, 22, 2, 10, 50, 28, 960327)
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x400e1e23 PS : 0x00060230 A0 : 0x800ddc5d A1 : 0x3ffccde0
A2 : 0x3f407de0 A3 : 0x00000009 A4 : 0x3f408318 A5 : 0x0000a08b
A6 : 0x3f408d84 A7 : 0x3f407dd0 A8 : 0x0000c000 A9 : 0x3ffccdd0
A10 : 0xfe007151 A11 : 0x00000000 A12 : 0x3ffc41a0 A13 : 0x000005cd
A14 : 0x00000d02 A15 : 0x3ffe4db0 SAR : 0x00000018 EXCCAUSE: 0x0000001c
EXCVADDR: 0xfe007152 LBEG : 0x400e1df5 LEND : 0x400e1e02 LCOUNT : 0x00000000
Backtrace:0x400e1e20:0x3ffccde0 0x400ddc5a:0x3ffcce10 0x400dee71:0x3ffcce30 0x4008372f:0x3ffccee0 0x400849af:0x3ffccf20 0x400dbc50:0x3ffccfc0 0x400e25b9:0x3ffccff0 0x40084599:0x3ffcd010 0x400dbc50:0x3ffcd0b0 0x400e25b9:0x3ffcd0e0 0x40084599:0x3ffcd100 0x400dbc50:0x3ffcd1a0 0x400e25b9:0x3ffcd1d0 0x400e25e2:0x3ffcd1f0 0x400ef946:0x3ffcd210 0x400efad9:0x3ffcd2a0 0x400d4d02:0x3ffcd2f0
ELF file SHA256: 00ec8adc7e89dd9a
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4540
ho 0 tail 12 room 4
load:0x40078000,len:12344
ho 0 tail 12 room 4
load:0x40080400,len:4124
entry 0x40080680
MicroPython v1.18 on 2022-01-17; ESP32 module with ESP32
Type "help()" for more information.