Skip to content

Fix handling of serial ports on BSD systems#415

Merged
jessebraham merged 1 commit into
esp-rs:mainfrom
jessebraham:fixes/bsd
May 31, 2023
Merged

Fix handling of serial ports on BSD systems#415
jessebraham merged 1 commit into
esp-rs:mainfrom
jessebraham:fixes/bsd

Conversation

@jessebraham

Copy link
Copy Markdown
Member

@tingox would you mind verifying this fixes the issue for you, please?

Closes #409

@jessebraham jessebraham requested a review from SergioGasquez May 30, 2023 14:13
@tingox

tingox commented May 30, 2023

Copy link
Copy Markdown

I do not mind at all:

tingo@kg-core1:~/personal/projects/2023/rust/embedded/esp/espflash $ target/release/espflash board-info
[2023-05-30T20:16:56Z INFO ] Detected 2 serial ports
[2023-05-30T20:16:56Z INFO ] Ports which match a known common dev board are highlighted
[2023-05-30T20:16:56Z INFO ] Please select a port
[2023-05-30T20:17:00Z INFO ] Serial port: '/dev/cuaU0'
[2023-05-30T20:17:00Z INFO ] Connecting...
[2023-05-30T20:17:04Z INFO ] Unable to connect, retrying with extra delay...
[2023-05-30T20:17:05Z INFO ] Using flash stub
Chip type:         esp32c3 (revision v0.3)
Crystal frequency: 40MHz
Flash size:        4MB
Features:          WiFi, BLE
MAC address:       58:cf:79:05:5c:e8
tingo@kg-core1:~/personal/projects/2023/rust/embedded/esp/espflash $ target/release/espflash board-info --port /dev/cuaU0
[2023-05-30T20:17:21Z INFO ] Serial port: '/dev/cuaU0'
[2023-05-30T20:17:21Z INFO ] Connecting...
[2023-05-30T20:17:25Z INFO ] Unable to connect, retrying with extra delay...
[2023-05-30T20:17:25Z INFO ] Using flash stub
Chip type:         esp32c3 (revision v0.3)
Crystal frequency: 40MHz
Flash size:        4MB
Features:          WiFi, BLE
MAC address:       58:cf:79:05:5c:e8

yes, this fixes the issue.

@SergioGasquez SergioGasquez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jessebraham jessebraham merged commit d9f8f8b into esp-rs:main May 31, 2023
@jessebraham jessebraham deleted the fixes/bsd branch May 31, 2023 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

espflash thinks that dev/cuau0 and /dev/cuaU0 are the same (usb) serial port

4 participants