New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS: stty: /dev/cu.usbmodemCkbio011: Device not configured #232
Comments
I have the exact same bug. It works from the IDE. |
I'm seeing this now too, after successfully flashing my keyboard several times from the command line (including twice earlier today). The only thing I'm aware of having changed since the last successful flash was the USB and Cat5e cables, but I changed the cables back and I'm still seeing this.
Process:
I can't flash from the IDE either, but that may or may not be related--I never have been able to flash from there, and didn't take the time to fix it since I was able to flash from the command line. |
Just to confirm, it still works correctly from the Arduino IDE? If so,
there's something wrong with the new port detection logic.
…On Fri, Mar 9, 2018 at 4:19 PM, lfurr ***@***.***> wrote:
I'm seeing this now too, after successfully flashing my keyboard several
times from the command line (including twice earlier today). The only thing
I'm aware of having changed since the last successful flash was the USB and
Cat5e cables, but I changed the cables back and I'm still seeing this.
stty: /dev/cu.usbmodemCDkbio01: Device not configured
make: *** [flash] Error 1
Process:
1. Edit the Model01-Firmware.ino file in the Arduino IDE.
2. In Terminal on my Mac, go to ~/Documents/Arduino/Model01-Firmware
and run the command make flash.
1. When prompted, hold the Prog key and press Enter.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#232 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACxaE5rYxje4gmyHXIytwl6roKPHTOfks5tcxwlgaJpZM4QQJgW>
.
|
Nope, I just edited my comment to say I never have been able to flash from the IDE, so I can't use that for diagnosis. |
Currently in the IDE I get Sketch uses 20658 bytes (72%) of program storage space. Maximum is 28672 bytes. This report would have more information with |
If you go to the Port drop down, do you see any options?
… On Mar 9, 2018, at 4:31 PM, lfurr ***@***.***> wrote:
Currently in the IDE I get
Arduino: 1.8.5 (Mac OS X), Board: "Keyboardio Model 01"
Sketch uses 20658 bytes (72%) of program storage space. Maximum is 28672 bytes.
Global variables use 2040 bytes (79%) of dynamic memory, leaving 520 bytes for local variables. Maximum is 2560 bytes.
Low memory available, stability problems may occur.
Couldn't find a Board on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
At the moment, half the keyboard is in pieces on my lap--I thought I'd try looking for the reset button. (Speaking of which, I was surprised not to find any documentation saying where the reset button is. My search-fu may be at fault.) As soon as I finish reassembling I'll check and reply. |
Alternatively, if you type the following at a command line prompt:
ls -al /dev/cu.usbmodem*; sleep 10; ls -al /dev/cu.usbmodem*
and then, while holding down the 'Prog' key, very quickly disconnect your
Model 01 from your computer and plug it back in, what output do you get?
…On Fri, Mar 9, 2018 at 4:31 PM, lfurr ***@***.***> wrote:
Currently in the IDE I get
Arduino: 1.8.5 (Mac OS X), Board: "Keyboardio Model 01"
Sketch uses 20658 bytes (72%) of program storage space. Maximum is 28672
bytes.
Global variables use 2040 bytes (79%) of dynamic memory, leaving 520 bytes
for local variables. Maximum is 2560 bytes.
Low memory available, stability problems may occur.
Couldn't find a Board on the selected port. Check that you have the
correct port selected. If it is correct, try pressing the board's reset
button after initiating the upload.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#232 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACxaKZwSZx9XExBYnN1ghy16nLpXD3vks5tcx7vgaJpZM4QQJgW>
.
|
With the current bootloader, you should pretty much never need the hardware
reset button. The 'Prog' key puts the keyboard into bootloader mode when
held in at boot, just as the reset button would.
https://community.keyboard.io/t/how-the-prog-key-gets-you-into-the-bootloader/506/6?u=jesse
should get lifted to the wiki.
…On Fri, Mar 9, 2018 at 4:48 PM, lfurr ***@***.***> wrote:
At the moment, half the keyboard is in pieces on my lap--I thought I'd try
looking for the reset button. (Speaking of which, I was surprised not to
find any documentation saying where the reset button is. My search-fu may
be at fault.) As soon as I finish reassembling I'll check and reply.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#232 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACxaDoKuM7H7JZcEXtwIGQt8zjvhpY5ks5tcyLggaJpZM4QQJgW>
.
|
In the Arduino IDE, Tools -> Ports lists /dev/cu.Bluetooth-Incoming-Port and /dev/cu.usbmodem36 (Keyboardio Model 01) and the command got me:
Thanks for the info about the reset button! |
I can now flash in the IDE, so there's one good thing--neither port was selected, so I tried selecting one. |
Ok. There's definitely something up.
It looks like you've got a phantom device entry (usbmodemCDkbio01) hanging
around confusing our too-simple search for ports.
The fact that your keyboard is coming up as 'usbmodem36' suggests that it
might have been most recently flashed with the IDE set to 'Arduino
Leonardo' or something else rather than Model 01. That's not actually a big
deal, but can cause the port name to not be our port name.
…On Fri, Mar 9, 2018 at 5:01 PM, lfurr ***@***.***> wrote:
I can now flash in the IDE, so there's one good thing--neither port was
selected, so I tried selecting one.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#232 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACxaGTnvxSPWd7JE6UGpJwqxTlfOXULks5tcyX5gaJpZM4QQJgW>
.
|
In the IDE, the board is set to Keyboardio Model 01. When I looked again at the port, it was usbmodem40, and now usbmodem42. I have no idea what that change signifies. |
I tend to leave the computer on through the work week, I wonder if a restart would clear out the phantom device entry. I'll give that a try. |
What you're seeing is typical of a Model 01 (or Arduino) with firmware
compiled using Arduino's standard USB HID implementation, rather than ours.
It doesn't set a device serial number, so MacOS, as a ~security feature,
gives the port a different name every time the device gets connected. This
is...not ideal.
…On Fri, Mar 9, 2018 at 5:19 PM, lfurr ***@***.***> wrote:
I tend to leave the computer on through the work week, I wonder if a
restart would clear out the phantom device entry. I'll give that a try.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#232 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACxaAqjEkmSTVLaqheJhGTKRYrCkYNsks5tcyoNgaJpZM4QQJgW>
.
|
Well, after the reboot everything is better! I'm sorry for troubling you with something that rebooting would fix, but I am glad that I understand the Model 01 even better now.
Thank you! |
There's no need to apologize. We should _still_ be doing better
bulletproofing so nobody else gets bitten by this kind of hassle.
I am thrilled that it's now behaving, though :)
…On Fri, Mar 9, 2018 at 5:33 PM, lfurr ***@***.***> wrote:
Well, after the reboot everything is better! I'm sorry for troubling you
with something that rebooting would fix, but I am glad that I understand
the Model 01 even better now. make flash works, the IDE lists my ports as
/dev/cu.Bluetooth-Incoming-Port and /dev/cu.usbmodemCDkbio01 (Keyboardio
Model 01) and my devices are
crw-rw-rw- 1 root wheel 21, 7 Mar 9 20:25 /dev/cu.usbmodemCDkbio01
crw-rw-rw- 1 root wheel 21, 9 Mar 9 20:28 /dev/cu.usbmodemkbio01
Thank you!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#232 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACxaBV-uC0PLeVx1z_chRG1w7av5WAvks5tcy1OgaJpZM4QQJgW>
.
|
Just hit the same issue on macOS 10.13.4, and about to try the reboot method. Looks like I also have a phantom device as above from @lfurr.
|
Reboot got rid of the phantom device and now the keyboard was able to be flashed by the make target. Kinda wondering what puts the mac in this state. |
#301 may be of help here - I merged that to master for easier testing. Can you try updating Kaleidoscope, and see if you can still reproduce the problem? |
I've updated, and I haven't had this problem since. I also haven't seen the leftover ghost entry for |
I think this has been resolved by #301. |
Lets mark it as such, then. |
Opening at @obra's request in response to thread here:
https://community.keyboard.io/t/macos-stty-dev-cu-usbmodemckbio011-device-not-configured/493
Initial message from: ackintosh (Akihito Nakano):
Second response from: blakej (Blake Jones)
The text was updated successfully, but these errors were encountered: