Members Introductions aka The Icebreaker discussion.



  • @ajb2k3, I downloaded and installed MaixPy IDE. The M5Stack Core was not listed. I selected M5Stick. MaixPy has been sitting here for more than an hour trying unsuccessfully to connect to the device on COM5 (which is the correct port number).

    Any suggestions on how to get MaixPy IDE working with M5Stack Core?

    Any suggestions for other IDEs to try?

    Thanks



  • Let me guess, you are on windows.

    Step 1 delete driver.
    Step 2 switch off computer for a few minutes,
    Step 3 start computer but DO NOT plug in the M5Stack ,
    Step 4 install SIlabs driver,
    Step 5 restart computer,
    Step 6 Plug in M5Stack and check that you can connect.

    The com port driver is very unstable and the face that 2 IDE's are struggling point to the driver not installing correctly



  • Yes, I am on Windows 10 Pro. I never thought about cranking up a Linux VM and developing for the M5Stack on that.

    I have the Silicon Labs CP210x USB to UART Bridge, version 10.1.8.2466, dated 6/20/2019 installed. Is this the one to uninstall? If I uninstall this one, what driver should I install?

    So I uninstalled, turned off the computer, got some coffee, restarted the computer, installed the same driver, and plugged in the M5Stack.

    Neither MaixPy or VSCode likes it any better.

    Any chance I would be better off running either of these IDEs from Linux?

    Thanks for all your help!



  • @hamster Have you tried a new usb lead?
    Linux vm, I don't know about that as I dont have a machine to test.



  • I have 3 M5Stack Core microcontrollers (my wife is generous). Each comes with its own USB cable. I have tried to of the 3. They both behave the same.



  • @hamster said in Members Introductions aka The Icebreaker discussion.:

    I have 3 M5Stack Core microcontrollers (my wife is generous). Each comes with its own USB cable. I have tried to of the 3. They both behave the same.

    That's two of the 3.



  • @hamster
    I disconnected my StickC and StickV
    i opened device manager.
    Removed the driver.
    Rebooted.
    installed new driver.
    https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
    Rebooted.
    plugged in.
    verified both working.



  • @hamster said in Members Introductions aka The Icebreaker discussion.:

    Yes, I am on Windows 10 Pro. I never thought about cranking up a Linux VM and developing for the M5Stack on that.

    I have the Silicon Labs CP210x USB to UART Bridge, version 10.1.8.2466, dated 6/20/2019 installed. Is this the one to uninstall? If I uninstall this one, what driver should I install?

    So I uninstalled, turned off the computer, got some coffee, restarted the computer, installed the same driver, and plugged in the M5Stack.

    Neither MaixPy or VSCode likes it any better.

    Any chance I would be better off running either of these IDEs from Linux?

    Thanks for all your help!

    You need to restart the computer again after installing the driver and before plugging it in.
    this second restart is required for the driver to finish installing and to make it available from boot.

    I dont know why but the multiple restarts during install are required for both windows and osx.



  • Again, thanks for your help.

    Today I uninstalled driver, then rebooted computer, then installed driver (v10.8.1), then rebooted computer, then started VSCode, then plugged in M5ST A CK, not M5ST I CK, into computer. Up to this point, while the M5Stack is plugged into the computer the M5Stack has not rebooted.

    I then connected the M5Stack using COM5, which is the COM port for the M5Stack. The M5Stack did not reboot.

    Then, in the Explorer pane under M5STACK DEVICE, I touched COM5. This is supposed to expand and show the files and folders currently on the M5Stack device. At this point, the M5Stack reboots. It shows the QR code for roughly 10 seconds and then reboots. This behavior repeats, even after closing VSCode until I unplug the M5Stack from the computer.

    When I plug the M5Stack back into the computer, it reboots once and continues to show the QR code without rebooting.

    I then start MaixPy IDE. When I try to connect to the M5ST I CK (which is really an M5ST A CK) a dialog is displayed that has text, "Connecting ... Please wait ...". That dialog has a sweeping green bar that continues to sweep until the cows come home.

    I then start UIFlow and connect to the M5Stack. The M5Stack does not automatically reboot. I then open an existing project. I then run the file. It runs. There is no cycle of rebooting.

    I then attempt to "Download" the file to the M5Stack. The M5Stack displays "Uploading ...". The computer displays an Uploading message, "Uploading, please wait a minute ..." , then displays, "Upload code failed. Maybe your device is offline check it and retry". I have not usually had that happen previously. In the past, I have been able to download (or upload?) to the M5Stack.

    I rebooted the computer and tried again. Same result.

    I opened a different project and tried to download (or upload?) it. This was successful.

    I then opened the original program and copied the contents into the buffer. Then I opened the second project that downloaded successfully and replaced its contents with the contents of the buffer. I downloaded the program and it ran correctly.

    So, in general, I can make things happen with UIFlow that I cannot seem to get working using either MaixPy or VSCode.

    Does anyone have suggestions for what to try next?

    Again, thanks for your help.



  • Apparently I am dislexic (sp). The driver version is 10.1.8.2466.

    Is my problem Windows 10? Should I try this on a 32-bit Windows 7 machine?


  • M5Stack

    @Hamster to set the record straight Maixpy is not developed by M5Stack and is only intended to be used with Stick V. It is possible to open a serial terminal in Maixpy and code M5Stack devices from the REPL, but there are much better ways for doing that.

    I just wanted to double check, when you used vscode did you set your M5Stack into USB Mode?



  • Yes, I set the M5Stack in USB mode.

    I installed the toolchain for programming the M5Stack using VSCode in Windows 7 32-bit. The doohicky at the bottom of the VSCode window for adding an M5Stack did not even show up.

    I have been able to REPL to the device using PuTTY without issue.

    At this point, I think I need to move on. I am using a Visual Micro plugin for Visual Studio to develop using C++. Have I mentioned that I really wanted to use MicroPython instead? I'm much more versed in C++, but I wanted an excuse to learn Python. Oh, well.

    I know that the ESP32 has not been out that long and it is amazing what can be done with it. I'll check on MicroPython for the M5Stack in a few months.

    Thanks again for all your help!