Open stevegoobermanhill opened 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.
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.
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.
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:
Error message and core dump as follows:
Thxs, Steve