Search found 37 matches

by KLF
Fri Jun 24, 2022 1:40 pm
Forum: General Discussion and Questions
Topic: Guru Meditation Error: Core 0 panic'ed (LoadProhibited)
Replies: 10
Views: 5814

Re: Guru Meditation Error: Core 0 panic'ed (LoadProhibited)

scruss,

did you find a solution for your LoadProhibited?
Maybe there are timing problems - this could explain this error in completely different codes.

Best
Klaus
by KLF
Fri Jun 24, 2022 5:58 am
Forum: General Discussion and Questions
Topic: Guru Meditation Error: Core 0 panic'ed (LoadProhibited)
Replies: 10
Views: 5814

Re: Guru Meditation Error: Core 0 panic'ed (LoadProhibited)

Good morning scruss,

this is a very valuable tip for me.
I didn't know the join command in micropython.
It makes the code much shorter.

Thanks a lot
Klaus
by KLF
Thu Jun 23, 2022 10:25 am
Forum: General Discussion and Questions
Topic: Guru Meditation Error: Core 0 panic'ed (LoadProhibited)
Replies: 10
Views: 5814

Re: Guru Meditation Error: Core 0 panic'ed (LoadProhibited)

ChrisO, if you read my first code you see all prints to analyze where the code crashes. I expanded my code to get the position of crash, I did also a check like this: J=time_stamp[0] YEAR=str(J) print("YEAR="+YEAR) ... and I did not get the YEAR as a log cause it crashes in a line before. Your minim...
by KLF
Thu Jun 23, 2022 6:06 am
Forum: General Discussion and Questions
Topic: Guru Meditation Error: Core 0 panic'ed (LoadProhibited)
Replies: 10
Views: 5814

Re: Guru Meditation Error: Core 0 panic'ed (LoadProhibited)

Good morning scruss, davef, first here my REPL: sys.version= 3.4.0 sys.implementation=(name='micropython', version=(1, 18, 0), mpy=10757) platform.platform= MicroPython-1.18.0-xtensa-IDFv4.2.2-with-newlib3.0.0 As hardware I use an ESPRESSIF ESP32-WROOM-32U Before I expanded my code to see more in de...
by KLF
Wed Jun 22, 2022 10:13 am
Forum: General Discussion and Questions
Topic: Guru Meditation Error: Core 0 panic'ed (LoadProhibited)
Replies: 10
Views: 5814

Re: Guru Meditation Error: Core 0 panic'ed (LoadProhibited)

Hi davef, I expanded my code for more details, therfore I did the print of time_diff as an own line. But time_diff is not the problem, this goes all the time right - see logging: time_diff= 6.675 Extracting the time_stamp tuple goes wrong sometimes (4 times of 10). Now I have an external RTC connect...
by KLF
Wed Jun 22, 2022 9:23 am
Forum: General Discussion and Questions
Topic: Guru Meditation Error: Core 0 panic'ed (LoadProhibited)
Replies: 10
Views: 5814

Guru Meditation Error: Core 0 panic'ed (LoadProhibited)

Good morning Hello everybody, 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_s...
by KLF
Thu Apr 14, 2022 8:28 am
Forum: General Discussion and Questions
Topic: file COPY on SD card
Replies: 8
Views: 1973

Re: file COPY on SD card

Nicolett, here is my solution which I took from the lib upysh. But a 1.5 Myte file takes time of nearly a minute, therefor I do a movement instead (takes time of a 1 second or less). Best Klaus def copyfile(srcf, destf): if srcf == destf: print("Destination file must be different than source") retur...
by KLF
Wed Apr 06, 2022 1:23 pm
Forum: General Discussion and Questions
Topic: file COPY on SD card
Replies: 8
Views: 1973

Re: file COPY on SD card

Yes that is the case in my project.
I only want to move from one directory to another.
by KLF
Wed Apr 06, 2022 1:07 pm
Forum: General Discussion and Questions
Topic: file COPY on SD card
Replies: 8
Views: 1973

Re: file COPY on SD card

Robert, I thougt there is os.rename, os.remove, os.mkdir ... etc. available therefore also os.filecopy could be avalilable. But I did as you suggested and coded the copy by myself (learned from the sh lib). It works, but for bigger files it is to slow for me. Therefore I changed to move the file by ...
by KLF
Wed Apr 06, 2022 8:54 am
Forum: General Discussion and Questions
Topic: file COPY on SD card
Replies: 8
Views: 1973

file COPY on SD card

Good morning all,

I want to COPY (NOT move) a file on SD card from a working directory into an archive directory,
but I didn't find a copy command.
Maybe I searched in a wrong way, but I guess a file copy should be possible isn't it?

Thanky for any help
Klaus