i have a problem with deepsleep in my gpy,the code below DUMP



  • import machine
    import pycom
    import sys
    import uos
    import time
    import os
    from machine import Pin
    from machine import I2C
    from machine import WDT
    import libio
    import modem
    import inits
    import constants
    import globals
    import log
    import cards
    import _thread
    
    print("START")
    print("Running Python %s on %s" %(sys.version,  uos.uname() [4]))
    
    led = Pin('P19', mode = Pin.OUT, pull=Pin.PULL_DOWN)
    time.sleep(0.25)
    led.value(1)
    time.sleep(0.25)
    led.value(0)
    
    machine.pin_sleep_wakeup(['P8'], machine.WAKEUP_ANY_HIGH, False)
    machine.deepsleep()
    


  • @Eugenio-Bubba
    Do you mean core dump?
    And also show software version:

    print(os.uname())
    

    add also print('deepsleep') statement before machine.deepsleep() to see if core dump is after going to sleep


Log in to reply
 

Pycom on Twitter