Maple Mini DFU and Serial

Discussion about the Maple and other bootloaders
User avatar
Pito
Posts: 1245
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: Maple Mini DFU and Serial

Post by Pito » Wed Apr 20, 2016 8:24 pm

http://www.nirsoft.net/utils/usb_devices_view.html
http://www.softpedia.com/get/System/Sys ... view.shtml
For 64bit take the 64bit version.
If you want to uninstall the usb devices you have to go Help->Run as admin.
Attachments
USB Maple DFU and Serial.txt
(2.2 KiB) Downloaded 97 times
Pukao Hats Cleaning Services Ltd.

User avatar
RogerClark
Posts: 6109
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Maple Mini DFU and Serial

Post by RogerClark » Wed Apr 20, 2016 10:33 pm

Try on a different computer and also with a different cable

And of course your Maple Mini board could be faulty e.g. some sort of USB reset hardware issue

User avatar
mrburnette
Posts: 1786
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Maple Mini DFU and Serial

Post by mrburnette » Thu Apr 21, 2016 1:04 am

RogerClark wrote:Try on a different computer and also with a different cable

And of course your Maple Mini board could be faulty e.g. some sort of USB reset hardware issue

... which is why I advocate buying 2 of inexpensive hardware. I just went thru the faux NodeMCU mess with only 1 piece of hardware. Drove me crazy. The second (and third) arrived yesterday and the new one works perfectly with the recommended IDE settings and the exact same sketch. Results: bad hardware.

Ray

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

Re: Maple Mini DFU and Serial

Post by Pito » Thu Apr 21, 2016 8:39 am

:)
I will try with the second one :)
On the other hand the cable and DFU and basic MM hardware seems to be working (my test sketch via Serial1 and uart1):

Code: Select all

Claiming USB DFU Interface...
Setting Alternate Setting ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
Transfer Size = 0x0400
bytes_per_hash=2139
Starting download: [##################################################] finished!
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode



Hello World!

x= 3444444444445555555555666666.6666678
y= -56666666666677777777777788.888888888

z=x+y= 3387777777778877777777888877.7777789
3.387777777778878e+27
elapsed: 42 us

z=x-y= 3501111111112233333333444455.5555567
3.501111111112233e+27
elapsed: 45 us

z=x*y= -1.9518518518528641975309276666666673E+53
-1.951851851852864e+53
elapsed: 93 us

z=x/y= -60.784313725497885428683223790246607
-6.078431372549789e+01
elapsed: 314 us

z=cos(0.7)= 0.76484218728448842625585999019186493
7.648421872844884e-01
elapsed: 6665 us
Pukao Hats Cleaning Services Ltd.

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

Re: Maple Mini DFU and Serial

Post by Pito » Thu Apr 21, 2016 8:56 pm

Tried my second MM (Baite). 2 different cables, 4 diff ports. The same behavior as above.
Luckily at least the DFU mode works ;)
Pukao Hats Cleaning Services Ltd.

User avatar
RogerClark
Posts: 6109
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Maple Mini DFU and Serial

Post by RogerClark » Thu Apr 21, 2016 8:59 pm

You could try replacing the old bootloader which comes preinstalled with the new one.

Its not going to be any worse than what you have now.

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

Re: Maple Mini DFU and Serial

Post by Pito » Fri Apr 22, 2016 7:56 am

Flashed maple_mini_boot20.bin via stlink.
Board set MM with bootloader 2.0.
Sketch under Arduino 1.6.5.:

Code: Select all

void setup() {
  // put your setup code here, to run once:
Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
Serial.println("Hello");
}

Code: Select all

Sketch uses 12,388 bytes (10%) of program storage space. Maximum is 122,880 bytes.
Global variables use 2,560 bytes of dynamic memory.
C:\Users\pito\MyCode\Arduino\hardware\Arduino_STM32/tools/win/maple_upload.bat COM4 2 1EAF:0003 C:\Users\pito\AppData\Local\Temp\build3574855099985480588.tmp/STM32_Test_Maple.cpp.bin 
maple_loader v0.1
Resetting to bootloader via DTR pulse
Reset via USB Serial Failed! Did you select the right serial port?
Assuming the board is in perpetual bootloader mode and continuing to attempt dfu programming...

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=247
Starting download: [##################################################] finished!
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode
After reset the "Maple" in "Other devices" with ! in yellow triangle

Code: Select all

The drivers for this device are not installed. (Code 28)
None Maple in Ports.
Does it compile the usb serial into the sketch?
Pukao Hats Cleaning Services Ltd.

User avatar
Vassilis
Posts: 295
Joined: Thu May 21, 2015 6:42 am
Location: Thessaloniki, Greece
Contact:

Re: Maple Mini DFU and Serial

Post by Vassilis » Fri Apr 22, 2016 8:18 am

Click on the yellow icon (in other devices) and install the maple serial driver.

Code: Select all

Arduino_STM32\drivers\win\win_xp_legacy\maple-serial\usb_device.inf

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

Re: Maple Mini DFU and Serial

Post by Pito » Fri Apr 22, 2016 8:40 am

Error installing driver - the name is already in use.
I see now a "COM9" in "Other devices" with ! in yellow triangle however :)
Using win7 64bit btw.
Pukao Hats Cleaning Services Ltd.

User avatar
Vassilis
Posts: 295
Joined: Thu May 21, 2015 6:42 am
Location: Thessaloniki, Greece
Contact:

Re: Maple Mini DFU and Serial

Post by Vassilis » Fri Apr 22, 2016 8:49 am

Install Zadig http://zadig.akeo.ie/downloads/zadig_2.2.exe
Zadig is a Windows application that installs generic USB drivers, such as WinUSB, libusb-win32/libusb0.sys or libusbK, to help you access USB devices.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests