Cannot Compile or Flash New Model 100

I used a direct make flash to flash my Model 01. I just received a new Model 100 and tried to do the same thing (after pulling down the new firmware at v1.99.7). I got this:

Using Kaleidoscope from <redacted>/hardware/keyboardio/avr/libraries/Kaleidoscope
Using ardino-cli from <redacted>/hardware/keyboardio/avr/libraries/Kaleidoscope/bin/arduino-cli
Error initializing instance: Loading index file: loading json index file <redacted>/hardware/keyboardio/avr/libraries/Kaleidoscope/.arduino/data/package_kaleidoscope_devel_index.json: open <redacted>/hardware/keyboardio/avr/libraries/Kaleidoscope/.arduino/data/package_kaleidoscope_devel_index.json: no such file or directory
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
Error initializing instance: Error loading hardware platform: discovery builtin:mdns-discovery not found
Missing FQBN (Fully Qualified Board Name)
Arduino provided FQBN
***************************************************************

Arduino couldn't figure out what kind of device this sketch
is for. Usually, Arduino looks in a file called `sketch.json`
to figure this out.

I'm unable to detect your keyboard, you may need to manually
edit your `sketch.json` file or run

ARDUINO_DIRECTORIES_USER=<redacted>/hardware/keyboardio/avr/libraries/Kaleidoscope/.arduino/user ARDUINO_DIRECTORIES_DATA=<redacted>/hardware/keyboardio/avr/libraries/Kaleidoscope/.arduino/data <redacted>/hardware/keyboardio/avr/libraries/Kaleidoscope/bin/arduino-cli board attach

manually, specifying the FQBN for your keyboard.

***************************************************************
<redacted>/hardware/keyboardio/avr/libraries/Kaleidoscope/etc/makefiles/sketch.mk:93: *** .  Stop.

I presume it’s user error, but my keyboards are my only interaction with Arduino, and it’s few and far between.

I tried Chrysalis, but I ran into either user error or a bug, though I must say Chrysalis is nice otherwise.

I’m not sure when this started, it seems to not be reading from sketch.json. The (a?) workaround is to use FQBN=keyboardio:gd32:keyboardio_model_100 make flash. Or put the definition of FQBN in your .profile.

This is a known issue Recent versions of arduino-cli appear to require a sketch.yaml instead of sketch.json · Issue #1330 · keyboardio/Kaleidoscope · GitHub

I recently ran into it myself and added some background information.

This should now be resolved.

1 Like