preenfm Forum

PreenFM => preenfm2 and preenfm3 => Topic started by: RyuX on December 11, 2013, 03:54:37 PM

Title: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: RyuX on December 11, 2013, 03:54:37 PM
Hey Guys
Finished my built some time ago, everything worked, but never got USB to work. So i decided to try again today.
I opened up the device, connected the CERB40 directly... nothing.. I tried to install the WinUSB Driver with the Zadig Tool for Windows Vista or later, "Driver installation failed"..
So i wanted to try the XP Version of the Tool, which installed the driver !
After that i used DFU-UTIL with no luck. Not listing anything. Tried connecting to different ports, Driver is working correctly, no listing still.
I read on other Forums that there are issues with CERB40 and Windows 7. Was not able to find a solution yet...
Drives me nuts. Too bad i dont have any other Windows XP PC around.

Someone got USB working on a Windows 7 / 64 bit Machine here ?
Thx guys
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: Xavier on December 11, 2013, 07:17:45 PM
 
First, try with the PreenFM2 powered and with the CERB40 mini-USB connected to your computer directly, to be sure your CERB40->PCB cable is not faulty.

There are 2 totally different usage of the USB.

1 . DFU mode : to upgrade firmware (and bootloader).
     This code is integrated to the STM32F4 microcontroller.
     The PreenFM jump to this code if you switch on the PreenFM while pressing the "Mtx" button or switch on with JMP3 jumper shorted.
     "dfu-util -l" should list the microcontroller as 4 different devices.
      The Zadig tools driver is required. So if you cannot install it, it cannot work.
      If it does not work you won't be able to update the bootloader but the firmware can be updated by 2 other methods. Flashing from USB stick is the easiest and fastest one.

2. Midi over USB
    Disable by default : Must be enable through the settings : Tools->Set->Usb midi. Then the PreenFM2 must be rebot.
    The PreenFM implements the regular MidiStreaming interface.
    It should be seen as a midi interface named "PreenFM mk2". No driver needed.
    I tested it on Windows 7 (64 bits), MacOS 10.8, different Linux/Ubuntu releases  and on a ipad with IOS 6.
   
Do you have both not working ?
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: RyuX on December 11, 2013, 07:23:32 PM
None of them works.

I tried to reflash the newer bootloader in DFU Mode.. got the WinUSB Driver installed with Zadig etc. but never got a listing with DFU-UTIL.

Tried different cables and ports, also the Midi Over USB doesnt work because the PreenFM2 doesnt get recognized, not even as a Unknown Device, just nothing.

Maybe its a Win7 problem.
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: Xavier on December 11, 2013, 07:27:49 PM
Maybe its a Win7 problem.

No it should work. I did many times on my windows 7 64 bits.

Are you on a USB hub ? Try to plug the CERB40 mini USB cable directly behind your computer.
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: RyuX on December 12, 2013, 03:47:49 PM
Hey xavier

I tried that already.. 2 different powered USB Hubs, 4 different direct usb ports, no luck.
Maybe my CERB40 has some kind of defect.
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: Xavier on December 12, 2013, 08:13:25 PM
I don't think it's your CERB40, it was flashed when you recevied it through the mini USB port.

What do you see in your device manager while in DFU mode ? (PreenFM plugged (USB or DC in), JMP3 shorted and direct computer to CERB40 mini usb).
Unplug the PreenFM, open the device manager then plug it... nothing move ?

Xavier
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: RyuX on December 13, 2013, 01:35:04 PM
After installing the driver with Zadig i saw a Device called STM Bootloader in the device manager, but like i said before i was not able to list it with the DFU Tool.

Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: Xavier on December 13, 2013, 02:14:30 PM

OK not as bad as i thought.
Your computer see the device. At this point there were already a lot of USB communication between both.
But can you post a picture of the device manager ?
Even without the driver installed by zadig there is a device called "STM bootloader", so i'd like to see what you see.

Uninstall the driver (with removing local files) from the device manager - right click->properties->driver->unistall.
After, you should see a yellow exlamation mark beside "STM booloader".
And install again with zadig.
(Altitude said in a other post that didn't work for him the first time. Don't know if he had to change the default driver selected.)
Once the" STM32 Bootloader" shows up again properly try the dfu-util -l.
Also could you copy the output of "dfu-util -l". The version should show-up... v0.7 works. I don't know about the others.

Xavier



[attachment deleted by admin]
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: RyuX on December 13, 2013, 02:28:17 PM
Hey Xavier.. well it just looks like yours, i installed, uninstalled several times etc. never got a listing with DFU-UTIL whatsoever..
there is only 0.6 available for windows. I did not find 0.7 for windows.

Quote
dfu-util 0.6

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY

[attachment deleted by admin]
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: Xavier on December 13, 2013, 03:25:37 PM
"But can you post a picture of the device manager ?"
 ;)

With the STM32 folder open...
I'll check my version of dfu-util under windows when i'm at home.
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: Xavier on December 13, 2013, 03:28:07 PM
Version 0.7 is here :
http://dfu-util.gnumonks.org/releases/
Should be in dfu-util-0.7-binaries.7z.
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: RyuX on December 13, 2013, 05:21:59 PM
Also no listing with the 0.7 version..

Here the pic


[attachment deleted by admin]
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: Xavier on December 13, 2013, 05:37:46 PM

Can you try with dfu-util-static.exe from the same folder ?
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: RyuX on December 13, 2013, 05:41:05 PM
Same thing with the dfu-util-static

Has to be the CERB40 itself, dont know what else could be the problem.
I read on some forums that some CERB's just dont work with Win7
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: Xavier on December 13, 2013, 05:44:36 PM

I don't have many ideas left  :(

Any link to the forums where they talk about that ?

Xavier
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: RyuX on December 13, 2013, 05:46:59 PM
https://www.ghielectronics.com/community/forum/topic?id=10068&page=2

Some seem to get it working after some time, some dont.. but my main problem is, i got it detected by windows now, but still no DFU Listing. Also no detecting with connecting the PreenFM over USB. Only via direct connection to CERB40 in DFU Mode.
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: Xavier on December 13, 2013, 08:20:40 PM
Also no detecting with connecting the PreenFM over USB.

Could you give more details ?
For the moment i don't know if it's the same problem or 2 different ones.

Please confirm :
> USB Midi is enabled AND saved in the settings. Press 2 times "Menu" after enabling "USB Midi: In" in Menu->Tools->Set.
Plug mini USB cable to CERB40 AND PreenFM Powered.
The Reboot your PreenFM. Usb midi only works when it's enable while it's booting.

What do you see in the device manager ?
"PreenFM mk2" should show up in a folder called something like "audio, games devices"...
Do you see it ?
Screenshot appreciated ;-)
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: RyuX on December 13, 2013, 09:01:18 PM
Hello

If i connect the PreenFM directly on his own USB Port it will not detect anything, no unknown device, no hidden device, nothing!
Of course i enabled the Midi in the Tools Menu i also tried all the ports, powered hubs, non powered hubs, different cables, also had the preenFM2 upside down while shuffle dancing at a full moons night, nothing worked  8)

i could make a screenshot but this would not help, because you wouldnt see any PreenFM device on it.
I guess i have to life with that, maybe i will buy a CERB40 on my next mouser order and try another one.
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: Xavier on December 13, 2013, 09:11:42 PM
If i connect the PreenFM directly on his own USB Port it will not detect anything, no unknown device, no hidden device, nothing!

There is no unknown device... this is a standard MidiStreaming device : http://www.usb.org/developers/devclass_docs/midi10.pdf
It does not need any driver and work out of the box on Linux, MacOs, IOS and Windows.

Sorry I was not clear.
I want to be sure it's not your PCB->miniUSB cable that is the problem.
Can you do ALL your test with a cable directly from you computer to the mini usb port of the  CERB40 in adition  to the way you power the PreenFM (USB or DC in).

After, If you really think your CERB40 has a problem, send it back to me, i'll send you another one.

Xavier


Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: RyuX on December 13, 2013, 09:22:54 PM
Hey Xavier

I think we are getting nearer to the problems source
I was able to get the System to show "PreenFM mk2" once (having the USB Cable directly connected to the CERB40 and also connected the preenFM on the backside via another USB cable)

so it must be the connection on the PCB somewhere..
I already double checked if i soldered the USB Connector pins right, but its exactly like in the pic. Also minimum solder, nice solder joints, no cross connections, also reflowed.

I still dont know why i cant flash a new bootloader on it in DFU Mode, even if i would fix the USB PCB Connection problem, i would never be able to update my bootloader (or are there any other ways ?)

Will look further on the USB PCB Connection ports...
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: Xavier on December 13, 2013, 09:37:22 PM

Ah.... finally good news  :D

Re-flashing the bootloader should not be usefull at all.

bootloader 1.01 fixed a problem for some LCD (not the one from the kit).
bootloader 1.02 light the LED and that's all

Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: RyuX on December 13, 2013, 09:41:42 PM
Yeah but still, i like my gear fully functional even if i dont use it :D
Cant seem to find the reason why the onboard USB Pins dont work, everything seems nice.
Will have a more detailed look tomorrow, and take everything apart again  :-[

Thanks for the help so far Xavier..
Have a good night
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: Xavier on December 13, 2013, 10:43:40 PM

An other Idea for the DFU mode.

Unplug the PreenFM.
Try to uninstall all USB devices with vendorID "0483" and productId "df11".
With USBDeview :
http://www.nirsoft.net/utils/usb_devices_view.html#DownloadLinks

Then restart one more time the whole process.

Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: RyuX on December 14, 2013, 07:13:54 PM
Hello
this did not help either..

But the good news is, i found the problem why the USB did not work.
It was a bad trace from Pin3 to USB Port of PreenFM. i am just about to fix it, i had no continuity between USB pin 3 and the USB Connector.

Seems that at least i have one problem solved soon ;)
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: RyuX on December 14, 2013, 07:25:11 PM
:D
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: RyuX on December 14, 2013, 10:35:49 PM
It shows up and syncs to bpm now via USB, but when i try to send midi notes to an instrument it does not respont, tried all channels. Dont know why that is, i checked the Channel assignment etc. seems all ok, but ok baby steps, at least i got it detected and fixed the bad trace.

Made a short video, thanks for integrating the BPM Sync LED in the new Firmware after i asked you if that would be possible.
I skipped the 220 ohm resistor and used a 5mm UV LED, looks nice in person, the video does not do it any justice.

http://youtu.be/qzsjqDGQzKU


Note: I fixed the Midi Channel issue, dont know what exactly caused it, but it is working now, via USB directly, just restarted my computer ;)
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: Xavier on December 15, 2013, 03:07:20 PM

The BPM LED was simple but great idea, and easy to code. Thanks  ;)

Does this big led affect the sound when blinking on long notes ?

Could be solder on the top PCB side with a hole on the black controle surface... I'll have to try that.

Xavier
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: werazefu on January 06, 2014, 01:32:00 AM
I had exactly the same problem: The PFM2 wasn´t recognized. No way. Not even connected straight to the CERB40.

I found out that I damaged the Mini-USB jack with my self assembled Mini-USB plug. I don´t know why but I pushed two of the five contact stripes out of the back of the jack. That was very hard to find. I hardly could see it. So there was no contact at line 3. I pushed them back in. But the were broken. Fortunately I was able to solder a little piece of metal (cut from a resistor) between the two dead ends.

All at once: It works! I was able to install the driver and update the bootloader.
Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: 6581punk on January 06, 2014, 09:55:28 AM
The USB cable is the most problematic part of the build. Although mine only seemed to work after resoldering the USB socket (power worked but not data).

One thing that would help is if the USB pins had their actual signal type mentioned on the silkscreen. So D- and D+ as well as 2 and 3. Or just put that information on the website somewhere.


Title: Re: PreenFM2 USB issues.. (Windows 7 / 64bit)
Post by: Xavier on January 07, 2014, 11:45:51 AM

Yes the usb cable is the most sensitive part to build.
I would love a CERB40 with 2 aditional pins instead of the mini usb connector.

Thanks for the feedback, i'll add the D+, D- information somewhere.

Xavier