# Cannot Compile or Flash New Model 100

**URL:** <https://community.keyboard.io/t/cannot-compile-or-flash-new-model-100/6207>\
**Category:** Help and Getting Started\
**Created:** [February 14, 2023, 4:45pm UTC](https://community.keyboard.io/t/cannot-compile-or-flash-new-model-100/6207 "2023-02-14T16:45:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gavin](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@gavin](https://community.keyboard.io/u/gavin)\
**Post date:** [February 14, 2023, 4:45pm UTC](https://community.keyboard.io/t/cannot-compile-or-flash-new-model-100/6207/1 "2023-02-14T16:45:04Z")

</div>

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:

```auto
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](https://github.com/keyboardio/Chrysalis/issues/1256), though I must say Chrysalis is nice otherwise.

---

<div class="post-metadata">

**Author:** ![frogmouth](https://avatars.discourse-cdn.com/v4/letter/f/7ea924/32.png) [@frogmouth](https://community.keyboard.io/u/frogmouth)\
**Post date:** [February 18, 2023, 10:18am UTC](https://community.keyboard.io/t/cannot-compile-or-flash-new-model-100/6207/2 "2023-02-18T10:18:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![argonblue](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@argonblue](https://community.keyboard.io/u/argonblue)\
**Post date:** [February 21, 2023, 4:29pm UTC](https://community.keyboard.io/t/cannot-compile-or-flash-new-model-100/6207/3 "2023-02-21T16:29:40Z")

</div>

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](https://github.com/keyboardio/Kaleidoscope/issues/1330)

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

---

<div class="post-metadata">

**Author:** ![jesse](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.keyboard.io/jesse/32/361_2.png) [@jesse](https://community.keyboard.io/u/jesse)\
**Post date:** [February 22, 2023, 4:59am UTC](https://community.keyboard.io/t/cannot-compile-or-flash-new-model-100/6207/4 "2023-02-22T04:59:16Z")

</div>

This should now be resolved.
