pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
199 stars 167 forks source link

machine.sleep(1) unstable #588

Open stevegoobermanhill opened 2 years ago

stevegoobermanhill commented 2 years ago

WiPy 3.0

sysname='WiPy', nodename='WiPy', release='1.20.2.r6', version='v1.11-c5a0a97 on 2021-10-28', machine='WiPy with ESP32', pybytes='1.7.1')

Hi. machine.sleep(1) appears to be causing core dumps.

Sample code - switching machine.sleep() to time.sleep_ms() removes the issue but obviously has higher power consumption:

#setup ADC 
adc = ADC(0)
adc_c = adc.channel(pin = ADC_PIN, attn=ADC.ATTN_2_5DB) 

while (True):
    v = adc_c.value()

    if (v >= THRESHOLD):
        #do_something

    machine.sleep(1)

Error message and core dump as follows:

Thxs, Steve

Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.
Core 0 register dump:
PC      : 0x40094d2f  PS      : 0x00060e33  A0      : 0x80087d60  A1      : 0x3ffb7130  
A2      : 0x00000000  A3      : 0x00060e20  A4      : 0x00000001  A5      : 0x0000cdcd  
A6      : 0xb33fffff  A7      : 0x3ffaff34  A8      : 0x0000abab  A9      : 0x3ffb7130  
A10     : 0x00000003  A11     : 0x0000cdcd  A12     : 0x00060e20  A13     : 0x0003d0f4  
A14     : 0x3f800010  A15     : 0x3f9400d1  SAR     : 0x00000000  EXCCAUSE: 0x0000001d  
EXCVADDR: 0x00000000  LBEG    : 0x40092834  LEND    : 0x40092862  LCOUNT  : 0xffffffff  

ELF file SHA256: 0000000000000000000000000000000000000000000000000000000000000000

Backtrace: 0x40094d2f:0x3ffb7130 0x40087d5d:0x3ffb7160 0x40085b35:0x3ffb7180 0x40136ca6:0x3ffb71c0 0x400d23fc:0x3ffb71e0

================= CORE DUMP START =================
7CsAAAEAAAANAAAAbAEAAA==
fHL7P3Bw+z90cvs/
4HD7PxBy+z/ydB70vEH8P7xB/D98cvs/tEH8PwMAAAAgPvw/ID78P3xy+z8AAAAA
FgAAAHh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PC/AEAwAAYA9E0JgECk/T8AAAAAIwAGACAABgAQcv0/VQAAACCD/T///z+z
q6sAABDd+z8jAAYAJKX9PwEAAAD+AAAAAAAAAAAAAAClpaWlpaWlpQAAAAAAAAAA
AAAAAGQ0CEABAAAAWGYJQHQ3+T8AAAAAAAAAAAAAAAD//z+zAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD6XgmAUKT9P0Dd+z8GAAAA
ulwOgHCk/T8BAAAA9EH8PySl/T8BAAAA/gAAALCd+z8AAAAAkKT9PwAAAAAAAAAA
8EH8P0Dd+z9kP/w/aED8PwAAAACwpP0/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvKT9PwAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
================= CORE DUMP END =================
msariisik commented 2 years ago

Hi @stevegoobermanhill,

Thank you for your detailed report.

I followed the same steps, but I couldn't reproduce your issue. Can you provide us with which pin you are using to read ADC value? Do you have any special method running inside the if condition? You may need some delay before performing machine.sleep.

stevegoobermanhill commented 2 years ago

Hi Meric, thanks for getting back to me.

Pin 13

Steve


From: Meriç SARIIŞIK @.> Sent: 01 March 2022 11:39 To: pycom/pycom-micropython-sigfox @.> Cc: Gooberman-Hill, Stephen @.>; Mention @.> Subject: Re: [pycom/pycom-micropython-sigfox] machine.sleep(1) unstable (Issue #588)

You don't often get email from @.*** Learn why this is importanthttp://aka.ms/LearnAboutSenderIdentification PHISHING ALERT This email originated from outside of Amey Be aware that this could be a phishing attempt, do not click links or open attachments unless you recognise the sender and know the content is safe.

Hi @stevegoobermanhillhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fstevegoobermanhill&data=04%7C01%7Cstephen.gooberman-hill%40amey.co.uk%7Cfdc5e2a09d2a40b9966e08d9fb7838b2%7C87c38de176774ae8b54317ff79c50890%7C0%7C0%7C637817316108317510%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=UvvkScxAf51bbPSrDAeg1%2Bc7HLw8FUWdQgOf0KJx6L4%3D&reserved=0,

Thank you for your detailed report.

I followed the same steps, but I couldn't reproduce your issue. Can you provide us with which pin you are using to read ADC value?

— Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpycom%2Fpycom-micropython-sigfox%2Fissues%2F588%23issuecomment-1055338516&data=04%7C01%7Cstephen.gooberman-hill%40amey.co.uk%7Cfdc5e2a09d2a40b9966e08d9fb7838b2%7C87c38de176774ae8b54317ff79c50890%7C0%7C0%7C637817316108317510%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=bLLCxdw88egQ92SuXzgQNKmjeZEHXpZeF82nJp9hm70%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACGXHQYBYGA7W7LMZ2SDV53U5X6Y7ANCNFSM5NLZO32A&data=04%7C01%7Cstephen.gooberman-hill%40amey.co.uk%7Cfdc5e2a09d2a40b9966e08d9fb7838b2%7C87c38de176774ae8b54317ff79c50890%7C0%7C0%7C637817316108317510%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=wecQVUVKvwxCcBUJDv3x2edzQza3ee93fsJTNzqH13E%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Cstephen.gooberman-hill%40amey.co.uk%7Cfdc5e2a09d2a40b9966e08d9fb7838b2%7C87c38de176774ae8b54317ff79c50890%7C0%7C0%7C637817316108317510%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=YHUpIiksru22D8se7NcZfD9xFn7UpVrMMpmJvOnT%2FOQ%3D&reserved=0 or Androidhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Cstephen.gooberman-hill%40amey.co.uk%7Cfdc5e2a09d2a40b9966e08d9fb7838b2%7C87c38de176774ae8b54317ff79c50890%7C0%7C0%7C637817316108317510%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=ugL%2BwIvUFiuKiq0wNYG9qODYE5383pAUGiW8QR7RIi4%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>

Amey plc is a company registered in England and Wales. Registered Office: Chancery Exchange, 10 Furnival Street, London, EC4A 1AB. Registered Number: 4736639. For particulars of companies within the Amey Group, please visit http://www.amey.co.uk/Home/Companyparticulars/tabid/182/Default.aspx.

This email and accompanying attachments may contain confidential or privileged information and are for the sole use of the intended recipient(s). If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this email or accompanying attachments is prohibited. If you received this email in error, please notify us immediately and delete all copies of this email and accompanying attachments.

Email does not guarantee the confidentiality, completeness or proper receipt of the messages sent and is susceptible to alteration.

Please note that Amey monitors incoming and outgoing emails for compliance with its Security Policies. This includes scanning emails for computer viruses.