Maple Mini DFU and Serial

STM32duino bootloader aka Maple bootloader
User avatar
RogerClark
Posts: 6694
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Maple Mini DFU and Serial

Post by RogerClark » Tue May 03, 2016 8:30 pm

I am not sure why some people need to use zdiag.
I have never needed to use it, and I have installed on many different W7 machines, and also on W8.1 and W10

So either not all versions of W7 Pro are the same, or there are differences in the function of the USB host drivers (inside Windows)

Note. I have heard of people having problems when connecting though USB hubs, and its also possible that USB 1 ports behave differently to the newer USB versions.

jaromir
Posts: 31
Joined: Sat Apr 30, 2016 4:50 pm

Re: Maple Mini DFU and Serial

Post by jaromir » Tue May 03, 2016 9:09 pm

I went through .inf files and compared the VID/PID combinations to be the same as my device enumerated to - and it was the same, of course. The bat files and inf files looked sane. I have no idea why it didn't install correctly.

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

Re: Maple Mini DFU and Serial

Post by mrburnette » Tue May 03, 2016 11:36 pm

jaromir wrote: <...>I have no idea why it didn't install correctly.
One word: Erra

zmemw16
Posts: 1371
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Maple Mini DFU and Serial

Post by zmemw16 » Wed May 04, 2016 1:22 am

that man will help him root it out and concatenate.

stevech
Posts: 441
Joined: Thu Aug 27, 2015 6:32 am

Re: Maple Mini DFU and Serial

Post by stevech » Wed May 04, 2016 6:43 am

mrburnette wrote:Anyone that demands 100% perfect downloads 100% of the time, really should back off the STM32 bootloader and go to a different, less problematic flash methodology.

Ray
A bit over the top is this? I've worked daily for years and years with ARM7/Cortex, re-flashing my dev board with wanton abandon. Read-back verify every time (JTAG or SWD) and/or my own re-flashing code for remote updates. Some days I'm re-flashing for SWD debugging after a recompile at a rate of many per hour.

I've never had flash fail to read-back OK. Call me lucky, but this is NXP, Freescale, Atmel, ST. Several chip types each.
In production, the chips get flashed once. Then maybe 3 times a year due to updates.

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

Re: Maple Mini DFU and Serial

Post by Pito » Wed May 04, 2016 9:00 am

The fact it works on some win7 64b, and it doesn't on some (except usb hw issues, which I would consider less probable) it might indicate the driver does not install because of other installed drivers. Zadig simply somehow forces USB CDC to install.
As I wrote above, I did with zadig 2.1 and I did not get an USB CDC offer for Maple. After I had taken the zadig 2.2x it offered me the USB CDC for Maple and it started to work.
So my current understanding is - a driver collision, or other (ie Avira is blocking it??, not tried yet).
I am a long time happy Win user and I do not have any fundamental issue installing drivers for any kind of crazy dongles I am doing last years.. Of course I am using Linux too, but in limited quantities..
Pukao Hats Cleaning Services Ltd.

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

Re: Maple Mini DFU and Serial

Post by mrburnette » Wed May 04, 2016 11:51 am

stevech wrote: <...>
I've never had flash fail to read-back OK. Call me lucky, but this is NXP, Freescale, Atmel, ST. Several chip types each.
In production, the chips get flashed once. Then maybe 3 times a year due to updates.
GeeWhiz.... I was discussing the 3 basic OS platforms and the existing bootloader. No reference to the flash integrity. Just download process from IDE click until the sketch comes up...

In my use of Windows and Linux, I perhaps have 1 failure of the "download logic" out of 10 tries. Not bad, but not perfect.

Ray

stevech
Posts: 441
Joined: Thu Aug 27, 2015 6:32 am

Re: Maple Mini DFU and Serial

Post by stevech » Wed May 04, 2016 7:52 pm

mrburnette wrote:
stevech wrote: <...>
I've never had flash fail to read-back OK. Call me lucky, but this is NXP, Freescale, Atmel, ST. Several chip types each.
In production, the chips get flashed once. Then maybe 3 times a year due to updates.
GeeWhiz.... I was discussing the 3 basic OS platforms and the existing bootloader. No reference to the flash integrity. Just download process from IDE click until the sketch comes up...

In my use of Windows and Linux, I perhaps have 1 failure of the "download logic" out of 10 tries. Not bad, but not perfect.

Ray
Ah, I misread... you are talking about re-flashing / bootloading as a process and protocol, not a failure of the flash media, it seems.

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

Re: Maple Mini DFU and Serial

Post by Pito » Sat Jul 09, 2016 5:33 pm

I've installed stm32duino on an older win7 32bit machine (1.6.10 nightbuild, Maple Mini, Bootloader 2).
DFU works, upload is ok.
Serial over USB - it shows in dev manager as "Mass Storage Device", I've used Zadig 2.2.689 to replace it with Serial CDC, but no luck.
Still shows Mass Storage device on COM18..
PS:
After 4hours of messing with drivers it seems the issue was with Bluesoleil Bluetooth driver. After reinstalling it I see Maple as COM13 (without using zadig).
The other issue I see: when hw resetting Maple it ends up in DFU mode after the reset, so it does not continue into Serial (Maple COM13 does not appear in the dev manager). Pluging/unpluging also ends in DFU. Sometimes Maple COM appears, after the upload I get usually (port set to COM13):

Code: Select all

Starting download: [##################################################] finished!
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode
error resetting after download: usb_reset: could not reset device, win error: The system cannot find the file specified.
Pukao Hats Cleaning Services Ltd.

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

Re: Maple Mini DFU and Serial

Post by mrburnette » Sat Jul 09, 2016 11:32 pm

Pito wrote:I've installed stm32duino on an older win7 32bit machine (1.6.10 nightbuild, Maple Mini, Bootloader 2).
DFU works, upload is ok.
<...>
Back when I was using Win 8.1 (before my religious conversion to Linux) I had good success with Maple Mini... 90% to 95% success and re-enumeration to serial after download. As I only use Maple Mini clone, I have no other board experience to share.

Disclaimer: I am an ex-MCSE in windows workstation and windows server and my Win8.1 development machine was highly optimized snd I had the machine configured to utilize unsigned drivers.

Ray

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest