Start Here ?

akis_t
Thu Jun 25, 2015 11:30 pm
Hi, Is there a “first steps first” section/guide anywhere on these forums? I have got a what looks like a Maple Mini and would appreciate a small guide on how to proceed. In terms of experience I have been using the Arduino Pro Mini and Nano quite heavily in projects. Many thanks

RogerClark
Thu Jun 25, 2015 11:47 pm
I think this is something I need to do again.

There is a wiki on github https://github.com/rogerclarkmelbourne/ … STM32/wiki

However its not the easiest thing to read.

I also did some videos on how to install the repo (2 videos as there is the original and an update)

https://www.youtube.com/channel/UCZkTQA … Naj6YdImIA

However I was not focusing on the Maple mini.


akis_t
Fri Jun 26, 2015 12:56 am
I think I need help with the USB drivers. I am using Windows 7 64bit. I switched out to administrator, but it fails to install something about not signed properly. These drivers were taken from leaflabs along with their own IDE (maple-ide-0.0.12-windowsxp32.zip). I think they are made for Windows XP. In actual fact I ran the whole Maple IDE inside a virtual XP machine and I managed to install the DFU drivers and upload the “blink” program. Of course the virtual machine was running under Windows 7 and Windows 7 had something to say about the drivers too (it was not too happy).

Therefore, is there a set of Windows 7 drivers that I can use?


RogerClark
Fri Jun 26, 2015 1:08 am
Yes.

There is a special driver installer you need to use

You need to run the batch file install_drivers.bat in the drivers/win folder

https://github.com/rogerclarkmelbourne/ … rivers/win

This is actually a very clever and complex work around for the driver signing problem in Windows 7 (and newer), thankfully we are not the only project that has this problem with Windows driver signing so there is a solution


akis_t
Fri Jun 26, 2015 8:30 am
OK will try your suggestions.

Some questions:

1) How do you download a file or a whole folder from github? Seriously.

2) Upon inspecting the .inf file, it appears this has been hacked out of a “Microsoft XBox Controller Type S” but installs libusb – I need to read more on libusb there seem to be one million versions of it flying around


zoomx
Fri Jun 26, 2015 9:21 am
I found a way to download a file but not a folder.
Just press on the file name and then choose Raw on the edit bar.

RogerClark
Fri Jun 26, 2015 10:09 am
@akis_t

Just run the bat file.

The drivers that are needed are included by Windows. What the bat file and the other software does is associate the USB VID and PID numbers enumerated by the firmware in the board, with the Windows Virtual serial driver and the WIndows DFU driver.

However its not as easy as it used to be, because Windows 7 requires even this linkage to be digitally signed by a manufacturer – but this is not possible for open source projects.

So the work around is to generate your own personal digital self signed certificate and install it for each of the USB VID PID to driver associations.

Fortunately libwdi does all the hard work of creating and installing these certificates.

So you can do this manually yourself if you want, however you’d need to find the documentation on how to do it manually.


mrburnette
Fri Jun 26, 2015 11:49 am

1) How do you download a file or a whole folder from github? Seriously.

Essentially, you can view the Raw file if ASCII and then cut & paste as suggested by zoomx; or work your way to the root of the folder:
Example, you are here:
https://github.com/rogerclarkmelbourne/ … er/STM32F1
But, you need to be here:
https://github.com/rogerclarkmelbourne/Arduino_STM32

At that time, you will see Download Zip button:

Github.jpg
Github.jpg (50.43 KiB) Viewed 831 times

mrburnette
Fri Jun 26, 2015 11:58 am
akis_t wrote:I think I need help with the USB drivers. I am using Windows 7 64bit. I switched out to administrator, but it fails to install something about not signed properly. These drivers were taken from leaflabs along with their own IDE (maple-ide-0.0.12-windowsxp32.zip). I think they are made for Windows XP. In actual fact I ran the whole Maple IDE inside a virtual XP machine and I managed to install the DFU drivers and upload the “blink” program. Of course the virtual machine was running under Windows 7 and Windows 7 had something to say about the drivers too (it was not too happy).

Therefore, is there a set of Windows 7 drivers that I can use?


akis_t
Fri Jun 26, 2015 1:43 pm
Thanks for all the suggestions. Unfortunately the batch file, even though it claims it has installed the drivers, only manages to install the “Maple DFU” correctly. There is the “Maple R3” or “Maple Serial” depending, which shows the yellow exclamation mark “This device cannot start. (Code 10)”.

As a result there is no COM port active to communicate with the Maple Mini.

I know the Maple Mini is OK because I programmed it from XP – but because XP was running inside a virtual machine, everything had to go through Windows 7 which put a lot of obstacles in the way.


victor_pv
Fri Jun 26, 2015 4:14 pm
Did you run the install drivers batch file in this folder?
https://github.com/rogerclarkmelbourne/ … rivers/win

I believe that is all I had to do in Windows 8 to get the drivers installed.


akis_t
Fri Jun 26, 2015 4:32 pm
Yes exactly the same. I have uninstalled and re-installed to no avail.

However. I went back into the Windows XP virtual machine, uploaded a “blink LED” program, and amazingly after I pressed the reset button, Windows 7 said “discovered new hardware” and proceeded to auto-install the same “Maple Serial” driver, only now it did not have a yellow exclamation mark.

I now have two of those Maple Serial drivers, one works the other does not…


RogerClark
Fri Jun 26, 2015 10:26 pm
Please see my blog about how the Maple Serial device is Not in the bootloader.

www.rogerclark.net

The Maple Serial and DFU drivers are mutually exclusive for us.

Its only a DFU device while its running code in the bootloader and only a serial device when running a sketch.


akis_t
Sat Jun 27, 2015 11:31 am
Thanks I am reading now http://www.rogerclark.net/arduino-stm32 … l-and-dfu/
Yes on the high level I understand this, it is also mentioned on the leaflabs webpage under the Windows installation instructions where they prompt you to press the reset and user buttons in some order to force this and that …

RogerClark
Sat Jun 27, 2015 11:49 am
If you press reset and while the LED is flashing quickly press the “button” the bootloader will lock into DFU mode, leaflabs called this “perpetual bootloader mode”

If you hold the “button” down while pressing and releasing the reset, the processor actually goes into its internal Serial bootloader mode.
But there is a small problem in the maple hardware (boot1 is floating), which means this is intermittent.
So if you want to reflash the bootloader via Serial upload, you need to pull boot1 low when you do this sequence.

Also on windows, all you need to do if you can’t upload is wait for the compile to complete, and press reset as soon as dfu-util is looking for the board.
On Windows DFU util seems to have a long enough timeout such that you can press reset and the USB bus can re-enumerate before DFU has timed out, and it then recognises the board as a DFU device and uploads


Leave a Reply

Your email address will not be published. Required fields are marked *