You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qmk_firmware/docs/Memory-write-error,-use-deb...

1.5 KiB

In rare circumstances, your keyboard/device can become unwritable, and dfu-programmer will give you an error like this:

Erasing flash...  Success
Checking memory from 0x0 to 0x6FFF...  Empty.
Checking memory from 0x0 to 0x607F...  Empty.
0%                            100%  Programming 0x6080 bytes...
[ X  ERROR
Memory write error, use debug for more info.

Currently the only way to solve this is to reprogram the chip via ISP. This requires another device to be hooked up to a couple of exposed pins on the PCB. There is a guide on how to do this here, and this is where things are on the Planck PCB.

An example command to flash the board once things are hooked up is:

avrdude -c usbtiny -p m32u4 -U flash:w:planck_default_rev4.hex

Research is still being done on why this happens, but here are some cases: