🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Stack programming with Visual Studio Code in Linux

    Core 2
    2
    3
    2.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mikesyr
      last edited by

      I'm trying to use Visual Studio Code with an M5Stack Core 2, in Fedora Linux.
      VSC and Fedora are fully updated/restarted/etc.

      After an initial issue getting the "Add M5Stack" to appear (see https://community.m5stack.com/topic/2993/core2-with-visual-studio-code ) I can connect through VSC (as /dev/ttyACM0). I can "reset" the device using VSC. However, after creating a simple py program - print("Hello m5") - and I click the solid right-arrow at the top right of VSC, that's labeled "Run in M5Stack", I get the following error:
      "Cannot read properties of undefined (reading 'sendCommand') "

      After resetting the M5, I get a screen telling me to download UIFLow

      0_1671243772572_Screenshot from 2022-12-16 21-22-14.png

      I've done that, but it keeps asking me to. Perhaps installed incorrectly?

      Any help appreciated.

      -Mike

      1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        Dunno about the issue but every time you send code to the core in VSCode, Unless the code is micropython, the firmware gets wiped as the code works direct without the micropython interpreter.

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • M
          mikesyr
          last edited by

          My code consists of a single line:

          print("Hello m5")

          Are you suggesting clicking "Run in M5Stack" with that code would cause my trouble?

          1 Reply Last reply Reply Quote 0
          • First post
            Last post