[SOLVED] Couldn't find the DFU device: [1EAF:0003] - How to fix? - install drivers

Maple Mini, Maple Rev3, Maple Rev 5 and Maple Ret 6, iTead Maple etc
Post Reply
User avatar
343GuiltySpark
Posts: 10
Joined: Wed Jun 06, 2018 6:59 pm

[SOLVED] Couldn't find the DFU device: [1EAF:0003] - How to fix? - install drivers

Post by 343GuiltySpark » Mon Jul 23, 2018 9:39 pm

I am trying to load code onto a Maple Mini clone for the first time but I keep running into a dfu-util that says it can't find my board (see Arduino IDE output message below). Any help with this would be great. I've found solution for clones and for other operating systems, but none of those have worked for me. The dfu-util wants to find "1EAF:0003", but appears unsuccessful:

Arduino console output = below

Code: Select all

maple_loader v0.1
Resetting to bootloader via DTR pulse
Searching for DFU device [1EAF:0003]...
dfu-util - (C) 2007-2008 by OpenMoko Inc.
Couldn't find the DFU device: [1EAF:0003]
This program is Free Software and has ABSOLUTELY NO WARRANTY
The "Get board info" until "Tools" in the Arduino IDE yields the following:

Arduino "Get board info" output below:
BN: Maple Mini
VID: 1EAF
PID: 0004
SN: Upload any sketch to obtain it
It's so close to "1EAF:0003". Perhaps it's supposed to be the same? regarding how to change that, though, I have not yet found a solution.

The initial state of the board upon being plugged in via mini USB was the blue LED cycling through roughly 3 seconds on and a half-second off. I'm using the Arduino IDE (plenty of experience with Arduino and RedBear), so I selected "COM14 (Maple Mini)" as the port and "Maple Mini" as the board. Default settings that I left unadjusted are the following:

Arduino settings below:
CPU Speed(MHz): "72MHz (normal)"
Bootloader version: "Original (17k RAM, 108k Flash)"
Optimize: "Smallest (default)"
Programmer: "Arduino as ISP"
I then put the device in permanent bootloader mode by tapping the "reset" button and quickly holding the "but" button. The device went into permanent bootloader mode (LED now blinks quickly, roughly 100ms on / 100ms off). I then tried uploading the program and the device was recognized as being in bootloader mode, but I still got a similar error:

Arduino console output below:

Code: Select all

maple_loader v0.1
Resetting to bootloader via DTR pulse
Reset via USB Serial Failed! Did you select the right serial port?
Searching for DFU device [1EAF:0003]...
Assuming the board is in perpetual bootloader mode and continuing to attempt dfu programming...
dfu-util - (C) 2007-2008 by OpenMoko Inc.
Couldn't find the DFU device: [1EAF:0003]
This program is Free Software and has ABSOLUTELY NO WARRANTY
timeout waiting for COM14 serial
I am running on Windows 10 version 10.0.17 with Arduino IDE version 1.8.5. The Windows device manager recognizes my Maple Mini as "Maple 003" under "Other devices"; The icon for it is overlaid with the common small yellow triangle shape with an exclamation mark inside.

Something else to note would be that I have been trying to upload code onto Blue Pill boards (if there's an alternative solution for those instead, I'll take that just as happily), but I ultimately ended up getting stuck with the same dfu-util error about not being able to find 1EAF:0003.

My sketch is the following:

Arduino test sketch code below:

Code: Select all

/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
  Most Arduinos have an on-board LED you can control. On the Uno and
  Leonardo, it is attached to digital pin 13. If you're unsure what
  pin the on-board LED is connected to on your Arduino model, check
  the documentation at http://arduino.cc
  This example code is in the public domain.
  modified 8 May 2014
  by Scott Fitzgerald
  Modified by Roger Clark. www.rogerclark.net for Maple mini 25th April 2015 , where the LED is on PB1
 */
const int PLED = PC14;
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin PB1 as an output.
  pinMode(PLED, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
  digitalWrite(PLED, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(PLED, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
  digitalWrite(PLED, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);              // wait for a second
  digitalWrite(PLED, LOW);    // turn the LED off by making the voltage LOW
  delay(100);              // wait for a second
  digitalWrite(PLED, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(PLED, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
  digitalWrite(PLED, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);              // wait for a second
  digitalWrite(PLED, LOW);    // turn the LED off by making the voltage LOW
  delay(100);              // wait for a second
}
Thanks,
Matt
Last edited by 343GuiltySpark on Tue Jul 24, 2018 2:31 pm, edited 1 time in total.
"In the event of unexpected shutdown, the entire system will move to standby status. All remaining platforms are now ready for remote activation."

User avatar
Pito
Posts: 2003
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: Couldn't find the DFU device: [1EAF:0003] - How to fix?

Post by Pito » Mon Jul 23, 2018 9:43 pm

You have to flash the bootloader in first..
Pukao Hats Cleaning Services Ltd.

stevestrong
Posts: 3053
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: Couldn't find the DFU device: [1EAF:0003] - How to fix?

Post by stevestrong » Tue Jul 24, 2018 7:24 am


User avatar
343GuiltySpark
Posts: 10
Joined: Wed Jun 06, 2018 6:59 pm

Re: Couldn't find the DFU device: [1EAF:0003] - How to fix?

Post by 343GuiltySpark » Tue Jul 24, 2018 2:29 pm

Thanks for the responses.

Regarding bootloader and drivers: I updated the bootloader following the "Flashing the bootloader - Maple Mini" procedure. I also updated the drivers according to the Installation and Burning the Bootloader procedures. Ultimately after doing both of those things my device now programs! I already had the drivers downloaded but didn't know about the bat file meant to install them. I also had to tweak the bootloader flavour, but it works now. One last thing: even though my code programs, the Arduino console output is displaying a reset error. Is this a true concern?

Error message:
error resetting after download: usb_reset: could not reset device, win error: The system cannot find the file specified.
Arduino console output:

Code: Select all

maple_loader v0.1
Resetting to bootloader via DTR pulse
Searching for DFU device [1EAF:0003]...
Found it!
Opening USB Device 0x1eaf:0x0003...
Found Runtime: [0x1eaf:0x0003] devnum=1, cfg=0, intf=0, alt=2, name="STM32duino bootloader v1.0  Upload to Flash 0x8002000"
Setting Configuration 1...
Claiming USB DFU Interface...
Setting Alternate Setting ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
Transfer Size = 0x0400
bytes_per_hash=288
Starting download: [##################################################] finished!
error resetting after download: usb_reset: could not reset device, win error: The system cannot find the file specified.
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode
"In the event of unexpected shutdown, the entire system will move to standby status. All remaining platforms are now ready for remote activation."

stevestrong
Posts: 3053
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: [FIXED] Couldn't find the DFU device: [1EAF:0003] - How to fix?

Post by stevestrong » Tue Jul 24, 2018 3:23 pm

343GuiltySpark wrote:
Tue Jul 24, 2018 2:29 pm
error resetting after download: usb_reset: could not reset device, win error: The system cannot find the file specified.
That is "normal" and fine as long as download finishes. I think it has historical background, but I'm not sure.

Post Reply