I’m following the standard instructions for flashing the keyboard and I select the right port, hold the prog key but get this error:
Arduino: 1.8.5 (Mac OS X), Board: “Keyboardio Model 01”
Build options changed, rebuilding all
Archiving built core (caching) in: /var/folders/px/g08dnmzs0fjb3kzzdlyk2pfh0000gn/T/arduino_cache_573405/core/core_keyboardio_avr_model01_6907a5c3cb29daa309377897623470bc.a
Sketch uses 18888 bytes (65%) of program storage space. Maximum is 28672 bytes.
Global variables use 1932 bytes (75%) of dynamic memory, leaving 628 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.
After this the port is gone from the menu and I have to unplug the keyboard to get it to work again.
Yes. You need to be holding in the prog key or the keyboard won’t let you flash the firmware. (This prevents against malware flashing your keyboard without your consent.)
Hmm… from what I understand, the prog key should turn red when the keyboard is reset while holding that key (either by a signal from software or power cycle). If it doesn’t, there may be a problem with the bootloader or the driver is missing/misbehaving (someone please correct me if I’m wrong).
Something to try to narrow down the problem:
Run this command in a terminal:
sleep 5; /usr/sbin/system_profiler SPUSBDataType
You’ll have 5 seconds to perform the next steps:
Unplug the keyboard
Wait a second or so
Hold prog and plug the keyboard back in
Keep holding until the command finishes. It will output some information about USB devices.
Look for an entry in the output for the Model 01. If you see it, there may be a issue with the IDE. If you don’t see it, we may have a problem with hardware/drivers. Post the output back here if you’re not sure.
If you unplug the keyboard, then plug it in again while holding prog, and it doesn’t light up red, something is wrong with the hardware and/or bootloader.
@cyrossignol I get no particular error message from running your command:
Product ID: 0x2301
Vendor ID: 0x1209
Version: 1.00
Serial Number: Ckbio01
Speed: Up to 12 Mb/sec
Manufacturer: Keyboardio
Location ID: 0x14140000 / 10
Current Available (mA): 500
Current Required (mA): 500
Extra Operating Current (mA): 0
I will try the command line next. Have tried a different USB socket btw.
If you don’t have XCode developer tools set up already, run the following to download some programs needed for this process:
xcode-select --install
Then, follow the instructions for Mac to try to build and upload the firmware. If this works, you can then start customizing the sketch at Documents/Arduino/Model01-Firmware/Model01-Firmware.ino.