guild icon
Toit
#Newbie problem: Error: open COM16: The system cannot find the file specified.
Thread channel in help
endoMonkey
endoMonkey 10/20/2023 09:37 AM
I'm failing at one of the first hurdles trying to flash the firmware to an ESP32 WROOM dev module, I'm getting the error: Error: open COM16: The system cannot find the file specified.
Any thoughts, apologies if this is covered elsewhere, I did search the forum first and didn't find any reference to this error.
(edited)
endoMonkey
endoMonkey 10/20/2023 09:43 AM
endoMonkey
endoMonkey 10/20/2023 09:46 AM
The device works fine in VSCode:
floitsch
floitsch 10/20/2023 11:11 AM
@endoMonkey it looks like we had a regression with Jaguar 1.13.
We are working on a fix.
You can try to downgrade to an earlier version for now.
endoMonkey
endoMonkey 10/20/2023 11:14 AM
Yep, I'll give that a go right now. @floitsch I'm totally new to Jaguar, how do I go about rolling back to a previous version? Is there a post you can point me to with instructions perhaps?
floitsch
floitsch 10/20/2023 11:14 AM
winget install --id=Toit.Jaguar -e -v 1.12.0
floitsch
floitsch 10/20/2023 11:14 AM
Assuming you are using winget.
馃憤1
floitsch
floitsch 10/20/2023 11:14 AM
I don't really have an easy way to test this, though. (No Windows machine right now).
floitsch
floitsch 10/20/2023 11:15 AM
If it doesn't work, don't hesitate to come back.
floitsch
floitsch 10/20/2023 11:15 AM
After downgrading, you will need jag setup again.
endoMonkey
endoMonkey 10/20/2023 11:15 AM
I presume I need to uninstall the previous version first or will the new install overwrite the newer version without the need to uninstall?
floitsch
floitsch 10/20/2023 11:16 AM
I think it should uninstall the old one first.
floitsch
floitsch 10/20/2023 11:16 AM
But jag is really just one executable.
floitsch
floitsch 10/20/2023 11:16 AM
So there isn't a lot of things that can go wrong.
floitsch
floitsch 10/20/2023 11:16 AM
The majority of it is downloaded dynamically into the .cache directory, which will get updated with a call to jag setup.
endoMonkey
endoMonkey 10/20/2023 11:17 AM
Looks like I'll need to manually uninstall the newer version first
floitsch
floitsch 10/20/2023 11:18 AM
ok. so looks like you need to uninstall first...
floitsch
floitsch 10/20/2023 11:19 AM
winget uninstall -e --id=Toit.Jaguar (I think)
endoMonkey
endoMonkey 10/20/2023 11:19 AM
winget remove --id=Toit.Jaguar worked to uninstall the newer version fine.
floitsch
floitsch 10/20/2023 11:19 AM
Apparently remove and rm are aliases.
floitsch
floitsch 10/20/2023 11:19 AM
So yes.
floitsch
floitsch 10/20/2023 11:19 AM
And the -e is just for "exact match".
endoMonkey
endoMonkey 10/20/2023 11:21 AM
Okay, that worked a treat and the flash command fetched and installed the firmware first time.:馃憤:
floitsch
floitsch 10/20/2023 11:21 AM
Great!
floitsch
floitsch 10/20/2023 11:22 AM
Sorry about that.
We hope to have this fixed within the next few hours.
floitschfloitsch
Sorry about that. We hope to have this fixed within the next few hours.
endoMonkey
endoMonkey 10/20/2023 11:23 AM
Now all I need to do is learn Toit! :馃槅:
floitsch
floitsch 10/20/2023 11:24 AM
Have fun. (And I mean it).
Don't hesitate to ask questions.
floitsch
floitsch 10/20/2023 11:25 AM
I think the tutorials are the best place to start:
https://docs.toit.io/tutorials
erikcorry
erikcorry 10/20/2023 11:25 AM
I'm looking into the COM port thing.
Even with the newest Jaguar it works for me, so I'm wondering how to reproduce the issue.
erikcorry
erikcorry 10/20/2023 11:25 AM
Here's what my Device Manager looks like.
erikcorry
erikcorry 10/20/2023 11:25 AM
erikcorry
erikcorry 10/20/2023 11:28 AM
I'd be interested to see other people's device manager who see the issue.
endoMonkey
endoMonkey 10/20/2023 11:31 AM
Here's mine:
theHuanter
theHuanter 10/20/2023 11:31 AM
mine is a CH340 as well
floitsch
floitsch 10/20/2023 11:32 AM
Looks like it's the CH340 that stopped working.
theHuanter
theHuanter 10/20/2023 11:32 AM
the Olimex boards usually using them
erikcorry
erikcorry 10/20/2023 11:34 AM
OK good I have a device here with the CH340
erikcorry
erikcorry 10/20/2023 11:36 AM
Unfortunately that also works fine for me on my virtual WIndows box....
erikcorry
erikcorry 10/20/2023 11:36 AM
I'll try on the physical box.
theHuanter
theHuanter 10/20/2023 11:43 AM
what could the message "file not found" mean? what file?
floitsch
floitsch 10/20/2023 11:54 AM
When the port Address number was greater, windows responded with the error "System cannot find the file specified".
The solution to this problem is adding some back slashes to the port Ad...
floitsch
floitsch 10/20/2023 11:55 AM
According to the issue, adding backslashes to the port fixes it.
floitsch
floitsch 10/20/2023 11:55 AM
Something like \\.\COM16
floitsch
floitsch 10/20/2023 12:01 PM
https://support.microsoft.com/en-us/topic/howto-specify-serial-ports-larger-than-com9-db9078a5-b7b6-bf00-240f-f749ebfd913e
Maybe the upgrade of the serial module in Jaguar removed support for this? (We did upgrade it when going to Jaguar 1.13)
floitsch
floitsch 10/20/2023 12:07 PM
We found it...
And it's our fault. Should be easy to fix.
endoMonkey
endoMonkey 10/20/2023 12:14 PM
None of these work:
floitsch
floitsch 10/20/2023 12:20 PM
Probably would need to be \\\\.\\COM16 but we are already fixing it.
馃憣1
floitsch
floitsch 10/20/2023 12:21 PM
But it's not unlikely that the \\ approach won't work either.
theHuanter
theHuanter 10/20/2023 12:27 PM
I can remember that we did this once in the past because I had this issue
erikcorry
erikcorry 10/20/2023 12:47 PM
Thanks, everyone, for the help and the bug reports.
erikcorry
erikcorry 10/20/2023 12:47 PM
New Jaguar release coming up.
erikcorry
erikcorry 10/20/2023 02:50 PM
https://github.com/toitlang/jaguar/releases 1.16 available now.
Takes a bit of time before it hits winget, if that's what you use.
Use live reloading over WiFI to turbo-charge developing for your ESP32. - toitlang/jaguar
floitsch
floitsch 10/20/2023 04:02 PM
Have you signed the Contributor License Agreement?
Have you checked that there aren't other open pull requests for the same manifest update/change?
This PR only modifies one (1) manifest
Hav...
floitsch
floitsch 10/20/2023 04:02 PM
If you don't want to wait, just grab it from the releases page: https://github.com/toitlang/jaguar/releases/tag/v1.16.0
Update to SDK v2.0.0-alpha.116
Fix Windows problem with high COM port numbers
Ignuskinas
Ignuskinas 10/22/2023 06:10 PM
Ignuskinas
Ignuskinas 10/22/2023 06:10 PM
sorry to ruin the show, but doesnt seem to help
floitsch
floitsch 10/22/2023 06:11 PM
There is Jaguar v1.16.1 out, but unfortunately I doubt it will fix the issue.
floitsch
floitsch 10/22/2023 06:12 PM
However, you should be able to write jag flash --skip-port-check now.
Ignuskinas
Ignuskinas 10/22/2023 06:13 PM
:/
Ignuskinas
Ignuskinas 10/22/2023 06:13 PM
neup
Ignuskinas
Ignuskinas 10/22/2023 06:13 PM
floitsch
floitsch 10/22/2023 06:14 PM
I guess it doesn't help if you select the port with an argument --port COM17.
Ignuskinas
Ignuskinas 10/22/2023 06:14 PM
nope, same story
Ignuskinas
Ignuskinas 10/22/2023 06:14 PM
should i try 1.16.1?
floitsch
floitsch 10/22/2023 06:15 PM
It shouldn't really make a difference, but it wouldn't hurt.
floitsch
floitsch 10/22/2023 06:15 PM
However.
floitsch
floitsch 10/22/2023 06:15 PM
If you could test older versions to see if they work, that would help us.
floitsch
floitsch 10/22/2023 06:16 PM
And COM17 is the port the device is connected to?
Ignuskinas
Ignuskinas 10/22/2023 06:16 PM
well yes
Ignuskinas
Ignuskinas 10/22/2023 06:17 PM
Ignuskinas
Ignuskinas 10/22/2023 06:17 PM
1161 doesnt help
Ignuskinas
Ignuskinas 10/22/2023 06:17 PM
is that really because of port above 9?
floitsch
floitsch 10/22/2023 06:17 PM
just to be sure: jag version shows the correct version?
Ignuskinas
Ignuskinas 10/22/2023 06:17 PM
IgnuskinasIgnuskinas
is that really because of port above 9?
floitsch
floitsch 10/22/2023 06:18 PM
It's likely, but I don't see any os.OpenFile in our sources anymore. At least none that should be executed.
floitsch
floitsch 10/22/2023 06:19 PM
Give me a few seconds, and I will prepare a jag executable that prints a bit more debug information.
Ignuskinas
Ignuskinas 10/22/2023 06:19 PM
Ignuskinas
Ignuskinas 10/22/2023 06:19 PM
this worked fine
floitsch
floitsch 10/22/2023 06:19 PM
So it is Jaguar itself that has issues.
floitsch
floitsch 10/22/2023 06:21 PM
ok. It's a stupid != vs ==. I think.
馃槼1
floitsch
floitsch 10/22/2023 06:21 PM
Give me a second and I will prepare an executable.
Ignuskinas
Ignuskinas 10/22/2023 06:22 PM
ok, happens:)(edited)
Ignuskinas
Ignuskinas 10/22/2023 06:23 PM
some jag --verbose would be nice
floitsch
floitsch 10/22/2023 06:25 PM
Could you try with this?
Ignuskinas
Ignuskinas 10/22/2023 06:26 PM
one sec
IgnuskinasIgnuskinas
some jag --verbose would be nice
floitsch
floitsch 10/22/2023 06:27 PM
Agreed, but unfortunately not high priority.
Also, the Jaguar desktop version was written in Golang, and there is a bit of a preference to work in tools now that have been written in Toit. So typically Toit tools see a bit more love than the Golang ones.
Not really an excuse, but explanation
Ignuskinas
Ignuskinas 10/22/2023 06:29 PM
damn
floitsch
floitsch 10/22/2023 06:30 PM
yeah. It's because it isn't signed.
floitsch
floitsch 10/22/2023 06:30 PM
I just built it on my Linux machine using cross-compilation.
Ignuskinas
Ignuskinas 10/22/2023 06:30 PM
yeah
Ignuskinas
Ignuskinas 10/22/2023 06:30 PM
wait a moment
Ignuskinas
Ignuskinas 10/22/2023 06:33 PM
bravo, it works
Ignuskinas
Ignuskinas 10/22/2023 06:33 PM
:馃コ:
floitsch
floitsch 10/22/2023 06:33 PM
Great. Thanks for testing.
I will TBR (to be reviewed) the change and release a new Jaguar version.
Ignuskinas
Ignuskinas 10/22/2023 06:34 PM
brilliant
Ignuskinas
Ignuskinas 10/22/2023 06:35 PM
thanks for your help - this ESP was almost on its way to trashbin as I thought its damaged
floitsch
floitsch 10/22/2023 06:36 PM
hehe.
It's really us who are grateful here. We are not using Windows ourselves, and without our user's help these kind of bugs would linger for a long time (and potentially scare new users).
So big thanks.
Ignuskinas
Ignuskinas 10/22/2023 06:36 PM
:馃:
Ignuskinas
Ignuskinas 10/22/2023 06:38 PM
im still unshure why im on windows, but here I am:D moving from development to management does crazy stuff with people - like turning them to Win, Sharepoint and PowerBI :馃槃:
floitsch
floitsch 10/22/2023 06:39 PM
:馃檪:
I fully understand. Once a system is set up correctly, it's annoying to change.
floitsch
floitsch 10/22/2023 06:41 PM
Use live reloading over WiFI to turbo-charge developing for your ESP32. - v1.17.0 路 toitlang/jaguar@cf53f82
floitsch
floitsch 10/22/2023 06:45 PM
Have you signed the Contributor License Agreement?
Have you checked that there aren't other open pull requests for the same manifest update/change?
This PR only modifies one (1) manifest
Hav...
floitsch
floitsch 10/22/2023 06:46 PM
Hmm. Winget has about 2 PRs/hour. I wonder if we could hit PR 123456 :馃檪:
Ignuskinas
Ignuskinas 10/22/2023 06:47 PM
:馃槃:
kaxori
kaxori 10/23/2023 03:52 PM
winget install --id=Toit.Jaguar -e -v 1.17.0

==> Es wurde bereits ein vorhandenes Paket gefunden. Es wird versucht, das installierte Paket zu aktualisieren...
Es wurde keine 眉bereinstimmende Version gefunden: 1.17.0
floitsch
floitsch 10/23/2023 03:52 PM
Isn't that winget update ?
floitsch
floitsch 10/23/2023 03:52 PM
Let me check
floitsch
floitsch 10/23/2023 03:53 PM
winget upgrade (but winget update is an alias)
floitsch
floitsch 10/23/2023 03:53 PM
aaah.
floitsch
floitsch 10/23/2023 03:53 PM
I see. So it is trying to upgrade, but can't find the version?
floitsch
floitsch 10/23/2023 03:53 PM
So winget of Jaguar is now broken?
floitsch
floitsch 10/23/2023 03:54 PM
Could you try winget upgrade to see if that works?(edited)
kaxori
kaxori 10/23/2023 04:00 PM
winget upgrade : shows list of updatable apps, but jaguar 1.17.0 is not included
theHuanter
theHuanter 10/23/2023 04:05 PM
I always just run: winget install --id=Toit.Jaguar -e but it installed 1.16.0
floitsch
floitsch 10/23/2023 04:07 PM
Have you signed the Contributor License Agreement?
Have you checked that there aren't other open pull requests for the same manifest update/change?
This PR only modifies one (1) manifest
Hav...
floitsch
floitsch 10/23/2023 04:07 PM
It's pending a review
floitsch
floitsch 10/23/2023 04:08 PM
Sometimes takes a while before packages are available on winget
theHuanter
theHuanter 10/23/2023 04:08 PM
but more like hours, not days, right?
floitsch
floitsch 10/23/2023 04:08 PM
24h is not uncommon
floitsch
floitsch 10/23/2023 09:49 PM
1.17 is now merged on Winget
馃憤2
121 messages in total