OMG, serial console!



  • Maybe everyone else knows this, but I just discovered that you can connect to the M5stickC over the serial connection and get a python prompt!

    >plink -serial \\.\COM4 -sercfg 115200,8,1,n,n
    [0;32mI (8) boot: ESP-IDF v3.3-beta1-696-gc4c54ce07 2nd stage bootloader
    [0;32mI (9) boot: compile time 19:37:28
    ...
    Connected. Network config: ...
    Traceback (most recent call last):
      File "main.py", line 130, in <module>
      File "main.py", line 128, in <module>
      File "main.py", line 96, in GetAQI
    NameError: name 'wait_ms' isn't defined
    MicroPython v1.11-321-gac7da0a70-dirty on 2020-02-25; ESP32 module with ESP32
    Type "help()" for more information.
    


  • @dclaar Welcome to the Micropython world.
    This feature has been known and doumented several times, I think @lukasmaximus made a video for it.

    BTW if you use the new beta firmware (1.5.0) use Mu as the IDE as it make coding so much easer.
    BTW2: you can also access it in vstudio.



  • Hi

    I have found Thonny a nice editor as well, it lets you interact with the shell and transfer files.

    https://thonny.org



  • @ajb2k3 Thanks! I figured that somebody knew about it, but I had searched for various terms like serial, console, debug, etc, and didn't find it, so I thought I'd post this to perhaps help others find it. :)



  • Thanks for the IDE recommendations.

    I like vstudio because I can load the vim extension and pretend that I'm using a terminal. :)
    (Shoveling python is my day job, so I don't tend to use an ide unless I have to).



  • The serial console access is known as REPL.
    If you didn't know about REPL then it is no wonder that you are surprised.