Spark Logic

Maple mini clone first program

marcin.kasinski Fri Oct 02, 2015 8:55 am

Hi.

First sorry if my question is stupid.

I’m newbie.

I want to move from arduino to stm

I have the same board described here by Roger:
http://www.rogerclark.net/stm32f103-and … 1-5-x-ide/

Environment
Windows 10
Arduino IDE 1.7.7.

I can not upload simple program from this link

I tried to prepare my environment cccording to Rogers’s description.

I see some diferences and I have small questions

Using Arduino IDE 1.7.7 I dont have “STM32 to FLASH – no bootloadrer” board.

I used “Generic STM32F103RB”.

In this tutorial there is step 12:
“On the Maple mini, press and hold the “Button” then tap and release “reset”. This puts the board into serial flash upload mode”

My question is :
Where id “Button” on this board ?

I just pressed reset and click upload my program.

Unfortunately I got error:

Failed to init device.
stm32flash 0.4

http://stm32flash.googlecode.com/

Using Parser : Raw BINARY
Interface serial_w32: 230400 8E1

Any hel please ?

Replies

darth_llamah Mon Oct 05, 2015 11:07 am

Try running StressSerialUSB example sketch (in Arduino_stm32/examples/Maple/) and/or check your code against it.
Don’t worry about “error resetting after download: usb_reset: could not reset device”, this just happens.

Vassilis Mon Oct 05, 2015 11:26 am

This is definitely driver conflict. There are two drivers. One for the maple mini and one for the usb serial port.
The drivers must be installed with the correct order to be functional.

At first, you must fist delete (uninstall) the maple mini drivers you have already installed and start the driver installation from the beginning.
I dont remember the driver installation order (first the serial driver and then the maple driver or the oposite).

Do some tests.

darth_llamah Mon Oct 05, 2015 11:34 am

Vassilis wrote:This is definitely driver conflict. There are two drivers. One for the maple mini and one for the usb serial port.
The drivers must be installed with the correct order to be functional.

Vassilis Mon Oct 05, 2015 11:36 am

I had the same problem as yours in the past and I solved it that way.

marcin.kasinski Mon Oct 05, 2015 11:51 am

Vassilis wrote:I had the same problem as yours in the past and I solved it that way.

Vassilis Mon Oct 05, 2015 12:02 pm

I am writing from my cell phone and I cannot tell you exactly the steps I followed.
I can do that in a few hours when I go home.

Vassilis Mon Oct 05, 2015 5:40 pm

Try the attached bootloader without replacing or uninstalling the maple and usb serial drivers.
Start address: 0x08000000
Bin file size: 0x501B

The modified bootloader contains a blinking led example starting from the 0x08002000-0x0800501B

Rick Kimball Mon Oct 05, 2015 5:54 pm

marcin.kasinski wrote:Vassilis wrote:I had the same problem as yours in the past and I solved it that way.

mrburnette Mon Oct 05, 2015 7:02 pm

This M$ link has info on how to view dormant USB (non-enumberated) ports:
http://support.microsoft.com/kb/315539

Once you make them visible, you can “delete” the registry enumeration for Plug’nPlay.

To make things go away, you need to note the files and paths and after deleting in Device Manager, physically delete the file. Plug ‘n Play is a 2-edged sword and blood is often let.

For tools, in addition to Rick’s suggestion, you may also want to look at some oldies (I have ’em on Win8.1 Professional):

USBView.jpg
USBView.jpg (127.6 KiB) Viewed 784 times

marcin.kasinski Mon Oct 05, 2015 9:08 pm

Vassilis wrote:Try the attached bootloader without replacing or uninstalling the maple and usb serial drivers.
Start address: 0x08000000
Bin file size: 0x501B

The modified bootloader contains a blinking led example starting from the 0x08002000-0x0800501B

RogerClark Tue Oct 06, 2015 12:45 am

Please watch myYouTube videos or read my blog. This is covered at length.

marcin.kasinski Tue Oct 06, 2015 11:43 am

RogerClark wrote:Please watch myYouTube videos or read my blog. This is covered at length.

RogerClark Thu Oct 15, 2015 8:53 pm

marcin.kasinski wrote:Vassilis wrote:I had the same problem as yours in the past and I solved it that way.

Sign in to reply