Page 2 of 2

Re: MPY DeepSleep and power consumption

Posted: Sat Jul 31, 2021 12:23 am
by njepsen
Well ---I am using a Fipy and when i use (for example) machine.lightsleep(1000) as per the docs,
I get response
Traceback (most recent call last):
File "<stdin>", line 559, in <module>
AttributeError: 'module' object has no attribute 'lightsleep'

If I use machine.deepsleep(1000) the board I get
>> %Run -c $EDITOR_CONTENT
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400ffb32 PS : 0x00060330 A0 : 0x800e8473 A1 : 0x3ffda970
A2 : 0x00000000 A3 : 0x00000001 A4 : 0x00000000 A5 : 0x00000009
A6 : 0x00008000 A7 : 0x8000ffff A8 : 0x3f40fd20 A9 : 0x3ffda940
A10 : 0x00000000 A11 : 0x00000000 A12 : 0x3ff56960 A13 : 0x00000000
A14 : 0x3ffde780 A15 : 0x00000001 SAR : 0x0000001e EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x400ed608 LEND : 0x400ed64b LCOUNT : 0x00000000

ELF file SHA256: 0000000000000000000000000000000000000000000000000000000000000000

Backtrace: 0x400ffb32:0x3ffda970 0x400e8470:0x3ffda990 0x400e5b60:0x3ffda9b0 0x401021e2:0x3ffda9e0 0x400fe571:0x3ffdaa10 0x400fe601:0x3ffdaa30 0x4010a5d7:0x3ffdaa50 0x4010227c:0x3ffdaaf0 0x400fe571:0x3ffdab60 0x400fe59e:0x3ffdab80 0x400e167d:0x3ffdaba0 0x400e17c9:0x3ffdac40 0x400e01ba:0x3ffdac70

================= CORE DUMP START =================

Re: MPY DeepSleep and power consumption

Posted: Sat Jul 31, 2021 12:58 am
by davef

Code: Select all

import machine
dir(machine)
maybe

Code: Select all

import machine
dir(machine.sleep)

Re: MPY DeepSleep and power consumption

Posted: Sun Aug 01, 2021 8:44 am
by pythoncoder
@njepsen The Fipy uses Pycom firmware (and obviously the hardware is their own) so you may get a more knowledgeable response in their forum.

Re: MPY DeepSleep and power consumption

Posted: Mon Aug 02, 2021 5:22 am
by njepsen
Thanks Peter. Naively - I thought micropython was micropython. :)

Re: MPY DeepSleep and power consumption

Posted: Mon Aug 02, 2021 6:27 am
by njepsen
Peter Said:
@njepsen The Fipy uses Pycom firmware (and obviously the hardware is their own) so you may get a more knowledgeable response in their forum.
I doubt it Peter. Their forum is a total shambles, full of unanswered issues.

Re: MPY DeepSleep and power consumption

Posted: Mon Aug 02, 2021 7:16 am
by pythoncoder
MicroPython is MicroPython, and this forum mainly supports the original version as used on a wide range of hardware. But as open source firmware anyone can create a fork and a number of companies have done so. These forks vary in how much they have diverged from upstream and how well they have kept up to date.

You're welcome to post queries in here, but users may not be knowledgeable about other forks.

If PyCom support sucks, I'm afraid you may have to draw your own conclusions :twisted: