WSL (Ubuntu 18.04 LTS) Cannot Load 1.5. Binary Image to Spresense

Asked 2 years ago, Updated 2 years ago, 125 views

Windows Subsystem for Linux (Ubuntu 18.04 LTS) is unable to "load 1.5. binary image" to the Presense.

Refer to the procedure for setting up the official Spresense site,

Then I can't see the device. I tried the same on other PCs, but the results didn't change. I tried the spare board. I think the board is not broken because Windows Device Manager recognizes it.

Also, I tried the same thing in the Windows environment (MSYS2MSYS).

 could not open port 'C:/msys64/dev/ttyUSB7':   
FileNotFoundError(2,'▒w▒肳▒ t▒t▒@▒C▒▒▒▒▒▒▒▒▒▒ '▒▒▒B', None, 2)
Cannot open port: C:/msys64/dev/ttyUSB7

By the way, it doesn't work either.

As mentioned above, I'm having trouble knowing why the device is not recognized.
I'd appreciate it if you could help me.
Thank you for your cooperation.

spresense wsl

2022-09-30 17:54

1 Answers

Windows Subsystem for Linux (WSL) does not search for devices in the same manner as native Ubuntu.
Serial ports on WSL are associated with COM port numbers and

 COMX=/dev/ttySX

Replace with to use the serial port.

If the port is COM7 on Windows,

on WSL
 /dev/ttyS7

so

$ tools/flash.sh-c/dev/ttyS7nuttx.spk

You can load on the .

In addition, the COM port number is still available on MSYS2 and can be loaded with the following commands:

$ tools/flash.sh-c COM7nuttx.spk

Thank you for your continued support at SPRESENSE.

SPRESENSE Support Team


2022-09-30 17:54

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.