From 778dc1caea8445a86f3938724bfc6437db346386 Mon Sep 17 00:00:00 2001 From: Christopher Harrington Date: Sat, 31 Jul 2021 12:35:04 -0500 Subject: [PATCH] Alternate flash command for Pinecil w/o mass-erase It seems the common wisdom at this point is to flash without the explicit erase if `dfu-util` is unable to complete the erase. --- Documentation/Flashing.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/Flashing.md b/Documentation/Flashing.md index 4252e18a..0fffd9b4 100644 --- a/Documentation/Flashing.md +++ b/Documentation/Flashing.md @@ -98,6 +98,12 @@ Using `dfu-util` you can flash the firmware using a command line as such: dfu-util -d 28e9:0189 -a 0 -D Pinecil_EN.bin -s 0x08000000:mass-erase:force ``` +If this command fails with `dfu-util: Error during special command "MASS_ERASE" get_status`, try this instead: + +``` +dfu-util -d 28e9:0189 -a 0 -D Pinecil_EN.bin -s 0x08000000 +``` + ### Windows For windows the easiest tool to use is the vendors gui tool from [here](http://www.gd32mcu.com/download/down/document_id/176/path_type/1).