Clone Maple Mini

If you made your own board, post here, unless you built a Maple or Maple mini clone etc
xxLogamxx
Posts: 10
Joined: Tue Aug 16, 2016 12:10 pm

Re: Clone Maple Mini

Post by xxLogamxx » Mon Oct 10, 2016 8:02 pm

Already I changed the cable and also check out the USB connector. Any suggestion?

User avatar
ahull
Posts: 1597
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: Clone Maple Mini

Post by ahull » Mon Oct 10, 2016 8:34 pm

I am not sure what the issue is, but I suspect you might have more success programming with one of the ST-Link V2 clones.

Code: Select all

...
kern.log.2.gz:Sep 29 15:18:47 ahull-T430 kernel: [14845.450625] usb 1-1.5.6: new full-speed USB device number 14 using ehci-pci
kern.log.2.gz:Sep 29 15:18:47 ahull-T430 kernel: [14845.856457] usb 1-1.5.6: device not accepting address 14, error -32
kern.log.2.gz:Sep 29 15:18:47 ahull-T430 kernel: [14845.928413] usb 1-1.5.6: new full-speed USB device number 15 using ehci-pci
...
I have seen similar errors with an un-programmed board I purchased recently. However this I suspect is because the board still has the blink program the supplier wrote to it, and therefore it does not attempt to set up USB Serial.

I will try flashing some code to it (with an ST-Link V2 clone) when I am next in the office (probably Thursday at the earliest).
The ST-Link will flash a board pretty much regardless of what state the flash is in. Even if you write complete rubbish to it, (as I am inclined to to accidentally on occasion), the ST-Link can erase and resurrect it.
Last edited by ahull on Mon Oct 10, 2016 8:40 pm, edited 1 time in total.
- Andy Hull -

User avatar
Slammer
Posts: 243
Joined: Tue Mar 01, 2016 10:35 pm
Location: Athens, Greece

Re: Clone Maple Mini

Post by Slammer » Mon Oct 10, 2016 8:38 pm

Try to full erase the chip and reprogram the bootloader only. The enumeration failure is caused in 95% of cases by cable/connector failure or some kind of short circuit in usb lines. Is your MCU OK? Try to program the MCU with serial port and test the behavior of CPU, make some IO operations in USB pins (with USB not enabled). It is possible to have faulty MCU or USB peripheral.

xxLogamxx
Posts: 10
Joined: Tue Aug 16, 2016 12:10 pm

Re: Clone Maple Mini

Post by xxLogamxx » Thu Oct 13, 2016 1:31 am

ahull wrote:I am not sure what the issue is, but I suspect you might have more success programming with one of the ST-Link V2 clones.

Code: Select all

...
kern.log.2.gz:Sep 29 15:18:47 ahull-T430 kernel: [14845.450625] usb 1-1.5.6: new full-speed USB device number 14 using ehci-pci
kern.log.2.gz:Sep 29 15:18:47 ahull-T430 kernel: [14845.856457] usb 1-1.5.6: device not accepting address 14, error -32
kern.log.2.gz:Sep 29 15:18:47 ahull-T430 kernel: [14845.928413] usb 1-1.5.6: new full-speed USB device number 15 using ehci-pci
...
I have seen similar errors with an un-programmed board I purchased recently. However this I suspect is because the board still has the blink program the supplier wrote to it, and therefore it does not attempt to set up USB Serial.

I will try flashing some code to it (with an ST-Link V2 clone) when I am next in the office (probably Thursday at the earliest).
The ST-Link will flash a board pretty much regardless of what state the flash is in. Even if you write complete rubbish to it, (as I am inclined to to accidentally on occasion), the ST-Link can erase and resurrect it.
Thanks for your response! I'll buy st link v2. Thank you

xxLogamxx
Posts: 10
Joined: Tue Aug 16, 2016 12:10 pm

Re: Clone Maple Mini

Post by xxLogamxx » Thu Oct 13, 2016 1:34 am

Slammer wrote:Try to full erase the chip and reprogram the bootloader only. The enumeration failure is caused in 95% of cases by cable/connector failure or some kind of short circuit in usb lines. Is your MCU OK? Try to program the MCU with serial port and test the behavior of CPU, make some IO operations in USB pins (with USB not enabled). It is possible to have faulty MCU or USB peripheral.
I turned off all the chip and again recorded the bootloader, but also does not recognize the usb. I did what you said, put the PA11 and PA12 pins as output, and used in high digitalWrite pins, the voltage is 0.21v to 0v and another pin. I think I have a usb that burned processor.

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

Re: Clone Maple Mini

Post by RogerClark » Thu Oct 13, 2016 3:53 am

I don't think you can simply put a voltmeter on the USB pins (PA11 and PA12) as they contain USB data and will not simply be a DC voltage.

Even if you look at them on a scope, I'm not sure if you will see anything useful, as the host may be constantly signalling to the peripheral.

You could verify you have not fried the GPIO on those pins, simply by uploading via USB to serial and powering from the USB to serial converter and NOT connecting the Maple Mini USB connector to the PC

Run a sketch which toggles GPIO on PA11 and PA12.

Also, if you upload via USB to Serial, (select that option in the IDE), it does not enable USB as it presumes you have connected the USB Serial to PA9 and PA10 in order to upload and hence want to do Serial.print via the same connection (PA9 and PA10)

So you are free to use PA11 and PA12

xxLogamxx
Posts: 10
Joined: Tue Aug 16, 2016 12:10 pm

Re: Clone Maple Mini

Post by xxLogamxx » Thu Oct 13, 2016 3:22 pm

RogerClark wrote:I don't think you can simply put a voltmeter on the USB pins (PA11 and PA12) as they contain USB data and will not simply be a DC voltage.

Even if you look at them on a scope, I'm not sure if you will see anything useful, as the host may be constantly signalling to the peripheral.

You could verify you have not fried the GPIO on those pins, simply by uploading via USB to serial and powering from the USB to serial converter and NOT connecting the Maple Mini USB connector to the PC

Run a sketch which toggles GPIO on PA11 and PA12.

Also, if you upload via USB to Serial, (select that option in the IDE), it does not enable USB as it presumes you have connected the USB Serial to PA9 and PA10 in order to upload and hence want to do Serial.print via the same connection (PA9 and PA10)

So you are free to use PA11 and PA12
I had already taken the test as you said. I uploaded and used powered by PL2303. I can conclude that the pins (PA11 and PA12) burned?

User avatar
ahull
Posts: 1597
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: Clone Maple Mini

Post by ahull » Thu Oct 13, 2016 8:20 pm

xxLogamxx wrote: I had already taken the test as you said. I uploaded and used powered by PL2303. I can conclude that the pins (PA11 and PA12) burned?
On a new board, I would suspect a manufacturing defect, solder bridges or something similar. Are the two pins shorted to gnd, shorted high, or shorted to each other or adjacent pins? If shorted together, then you might be able to drive them both high or both low, but not control them individually.
- Andy Hull -

Post Reply