Running your program without CTRL-D from REPL



  • Is it possible from the REPL to run one python program that you are debugging without doing the soft reset. I am trying to run the SD demo program (SD_01.py) and while it works putting in one line at the time at the REPL it will not work from a soft reset. After the soft reset the demo program does start as I have a print statement in it but the process of connecting to the WiFi in STA mode seems to go on a bit with the connecting process sending back info even after I have started the SD_01.py program. If I could avoid doing a soft reset each time I want to run SD_01.py it would be great.

    Booted in STA mode
    WiFi setup...
    In SD_01...
    I (12159867) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:6
    I (12159867) wifi: state: init -> auth (b0)
    I (12159869) wifi: state: auth -> assoc (0)
    I (12159873) wifi: state: assoc -> run (10)
    I (12159905) wifi: connected with PBM, channel 1
    I (12169873) wifi: pm start, type:0
    

Log in to reply
 

Pycom on Twitter