M5Stack programming with Visual Studio Code in Linux
-
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

I've done that, but it keeps asking me to. Perhaps installed incorrectly?
Any help appreciated.
-Mike
-
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.
-
My code consists of a single line:
print("Hello m5")
Are you suggesting clicking "Run in M5Stack" with that code would cause my trouble?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login