But I've been running into a bit of a hiccup, where it doesn't want to open the COM port (COM7 in this case). Different apps can all open the COM port, individually of course, not all at once!
This is what VS Code is saying after a Ctrl+Shift+B => 'build', then a Ctrl+Shift+B => 'espruino-console':
[19:23:47] Starting 'espruino-console'...
Espruino Command-line Tool 0.0.36
-----------------------------------
Explicit board JSON supplied: "ESP32"
Connecting to 'COM7'
Port "COM7" not found
Unable to connect!
[19:23:48] Finished 'espruino-console' after 1.7 s
Terminal will be reused by tasks, press any key to close it.
Possibly related, it appears that espruino-cli maybe isn't seeing COM ports?
PS C:\Users\seganku\git\espruino-ts-quickstart> espruino.cmd --list
Espruino Command-line Tool 0.1.38
-----------------------------------
undefined:55
} else throw err;
^
Error: LIBUSB_ERROR_NOT_SUPPORTED
at Device.usb.Device.open (C:\Users\seganku\AppData\Roaming\npm\node_modules\espruino\node_modules\usb\usb.js:38:7)
at BluetoothHciSocket.bindUser (C:\Users\seganku\AppData\Roaming\npm\node_modules\espruino\node_modules\@abandonware\bluetooth-hci-socket\lib\usb.js:94:19)
at BluetoothHciSocket.bindRaw (C:\Users\seganku\AppData\Roaming\npm\node_modules\espruino\node_modules\@abandonware\bluetooth-hci-socket\lib\usb.js:47:8)
at Hci.init (C:\Users\seganku\AppData\Roaming\npm\node_modules\espruino\node_modules\@abandonware\noble\lib\hci-socket\hci.js:120:18)
at NobleBindings.init (C:\Users\seganku\AppData\Roaming\npm\node_modules\espruino\node_modules\@abandonware\noble\lib\hci-socket\bindings.js:93:13)
at C:\Users\seganku\AppData\Roaming\npm\node_modules\espruino\node_modules\@abandonware\noble\lib\noble.js:61:24
at processTicksAndRejections (internal/process/task_queues.js:75:11) {
errno: -12
}
I'll look at this more tomorrow, but my brain is about toast for the evening.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I am trying to get VS Code working with Espruino via https://www.espruino.com/Typescript+and+Visual+Studio+Code+IDE
But I've been running into a bit of a hiccup, where it doesn't want to open the COM port (COM7 in this case). Different apps can all open the COM port, individually of course, not all at once!
This is what VS Code is saying after a Ctrl+Shift+B => 'build', then a Ctrl+Shift+B => 'espruino-console':
Possibly related, it appears that espruino-cli maybe isn't seeing COM ports?
I'll look at this more tomorrow, but my brain is about toast for the evening.
Thanks!
-Seganku