My maple mini let go of the magic black smoke…

victor_pv
Tue Apr 28, 2015 4:06 am
Today when I was going to try a modified bootloader, my maple mini started acting up, before I even could upload it.
Then I decided to connect it to my stlink and reprogram the last bootloader that I had loaded to it, and while doing so the boards touched, and I saw the “magic black smoke” coming our of my maple.
It was a very quick short somewhere, the MCU still gets detected by St-Link, and even writes and verifies the code successfully, but doesn’t turn on the led properly any more, neither gets detected even as a DFU device.
I think it died an honorable death, helping me learn about the ARM, C++, bootloader…

Now I have to wait until some of the others I ordered from different vendors arrive. One was supposedly shipped almost 2 months ago…
I’m sure my wife wont mind if they take a while to arrive though… ;)


madias
Tue Apr 28, 2015 7:53 am
Roger: Please create a new section in this forum:
“graveyard” – holy black smoke – or how I got my STM32 into heaven?
I always think after seeing my “working desk”, that I’m lucky not to smoke any module… (ok, I smoked about 3 litihium ion charger, they smell 3 days after death!)

RogerClark
Tue Apr 28, 2015 10:20 am
Victor.

Sorry, that the Magic Smoke escaped.

It reminds me.

I’ve been accidentally powering my STM32F103ZET board from 5V onto its 3V pin, but it seemed to survive

However I’d not recommend this to anyone.

It happened because my USB to Serial boards have both 5V and 3V output, and I swapped from using one USB serial to another, but one was had wires connected to the 3.3V output from the USB to Serial, and the other had the power wire connected to 5V

I wondered why the LED’s were so bright!!!

Anyway, fortunately (and strangely) no harm done.


madias
Tue Apr 28, 2015 10:28 am
little trick:
I ALWAYS use red jumper cables for 5V and orange ones for 3.3V. I learned to separate voltage lines while building an analogue synthesizer and working with +-15V (=30V) and AVR’s (5V) so any mistake had gone up in holy smoke…

ahull
Tue Apr 28, 2015 3:47 pm
:D Sounds familiar. I also blew up a board recently, still not sure quite how. It was a LiPo charger board, one second it was charging away fine, the next a tiny little stream of grey smoke… it looked oddly like a fine grey needle emerging from the charger chip, until it hit the more turbulent air a few inches above the board. I did a double take for a moment, not quite sure what I was seeing. The very distinctive smell soon re-synched the mental cogs.

I also purchased two cheap DAC board, one of which had been kindly pre-smoked by the Chinese vendor :cry: I picked up the smell the moment I took it out of the antistatic bag. Needless to say it didn’t DAC. The other board worked perfectly.


madias
Tue Apr 28, 2015 4:00 pm
Joking aside: This cheap lipo charger modules are dangerous, because if you (or me) didn’t recognized it in this moment, the module would be set on fire. I ordered some who are more expensive ( with protection) and give them a try. I don’t wanna built this sleeping firework into the mp3 player for my daughter (made of wooden, see “projects”).

mrburnette
Tue Apr 28, 2015 8:41 pm
RogerClark wrote:Victor.
Anyway, fortunately (and strangely) no harm done.

victor_pv
Wed Apr 29, 2015 4:05 pm
I found the 1117 in my maple clone was the one that had given up, so I replaced it, and get the bootloader working, but I can not run any sketch, which was exactly what happened right before I decided to connect to St-link and let go of the magic smoke…
So even though I have a working CPU, I think the flash memory is giving up…
I’ll try to write a couple of different patterns to all the flash and verify it with st-link, and see if it is just 1 bad page that I need to discard, and extend the life of this thing…
In any case for $4, I think surviving many uploads a days for two months was a fair price ;)

RogerClark
Wed Apr 29, 2015 10:09 pm
Victor

If its just a bit if the flash that us trashed, you could quite easily change the start offset, but you’d need to change the linker script and the boards.txt and if you are using a bootloader, you’d need to change that as well.

It’s a shame we can’t pass the build vector, i.e the start address into the linker script, but it seems that the gcc linker doesn’t support variables or substitution in the MEMORY definition blocks.
I.e I managed to get everything else working, passing the define for the start location to the linker via the gcc compiler ( there is some strange trick you need to do, to pass defines from gcc to gcc.ld)

If love to be proved wrong and for someone to find a way of doing variable substitution in the linker scripts, as it would mean , we would not need loads of separate scripts for the generic boards, but I ran out if time to get it working and I did seem to reach a dead end with it.


victor_pv
Fri May 01, 2015 7:05 pm
Roger, I think there is something else wrong with my MCU than the flash. I have tested my flash seems to be good, i have even flashed a sketch to the start address in case flashing with the bootloader failed, it did not fail apparently, I can verify it with st-link and find no differences, but after the bootloader is supposed to pass control to the sketch, it does not happen for some reason.
Could be the USB re-enumeration, but I don’t think is that either. Some times it detects the maple serial correctly, ID 1eaf, other times it detects it as 0e0f and does not load the driver. It could be that the flash reads and writes correctly thru ST-Link, that goes at about 2Mbit, but not when the MCU is trying to run at full speed. I have tested even the blink example, and would not blink. I may try later compiling a bootloader to upload in the top 64KB of flash, and start going down from there, with a new entry in boards.txt and a new linker script just for that.

So far I have gone back in bootloader versions to the first one Madias posted, which I had used for days without problems before, uploading to 5000. it uploads, but the sketch will not run :( st-link shows the upload is there, and the first 4 bytes contain the correct SP vector.

During my troubleshooting I did notice something strange. I went to my Temp folder, after compiling, and then the latest Buildxxxx folder created. I see all the usual files there, but the .bin files, and i have checked even some I compiled weeks ago, all of them have a chunk of nonsense data at the end, with thinks like the path to my arduino folders and things like that.
Have you noticed that before?
What called my attention is that I was uploading some sketch that would take 15KB or so, and I went to find the .bin file to upload it with st-link, and found the bin was 20KB, checked the content, and found that chunk or extra data at the end.


ahull
Sat May 02, 2015 12:17 am
It might be worth flashing a known working blink.bin from some other contributor who has the same board.

RogerClark
Sat May 02, 2015 10:15 pm
Victor

This is a known issue with too much stuff being compiled in, because at the moment we have to use the –whole-archive flag to get over some linker problems, which show up when using attachInerrupt.

This may be why you seem to have junk in the bin file.

You could try removing the –whole archive stuff from platform.txt and try again and see if the junk is still in the bin file (as most things still work)

Apart from that. The other issue could be you have damaged the USB re-enumeration circuit or the pin that it uses to trigger that function.

Without it, the bootloader will appear a DFU, but the sketch will not re-enumerate as USB Serial.

I normally revert back to flashing the LED with morse code in these circumstances or if the led is working, I attach a USB to Serial adaptor to just the RX and TX (Serial 1) pins on the maple, and still power it from USB (not don’t connect 5v from the USB to Serial when running from USB power)

You can connect GND from USB to Serial to the Maple mini, but I’ve found thats not necessary either, as it will get its GND from the USB connector and serial is so slow, using an alternate ground path doesn’t seem to be an issue

Have you tried flashing a file,then reading back the file and comparing the two ? albeit you will need to not read back the whole Maple mini, just the bit you know contains the data. I’d be tempted to somehow make a binary test file e.g. with incrementing number in it, that was perhaps 32k long, and write that to flash, then read back the same data and diff the files. I’m sure there must be some utility that would do this.


victor_pv
Sun May 03, 2015 1:49 pm
I found what was wrong with my board :)
The problem was in the diode that feeds the 1117 regulator from the USB 5V. The diode was acting as a zenner, dropping 2.5V across it, and leaving only 2.5V to the regulator input, which was dropping a bit more to the output.
The result was that the STM32 was running to some degree, but crashing randomly. The bootloader seemed to run fine with that power, as I could detect the DFU in perpetual mode and boot to it and even upload sketches, but it would not correctly enumerate the serial, and the sketches would either not run or crash. The LED was fairly dim, which got me thinking on some power issue, and then I fed it 3.3 from the nucleo board and everything would run fine, even sketches.
I looked the original maple mini schematic and has a diode, I guess to protect the USB from reverse voltage, and in the maple mini clones the diode is also there, it is right next to the 1117 regulator.
I have shorted it and all works fine. Now I need to find one of those tinny diodes and replace it.

I have no idea about SMD sizes for discrete components, does anyone now the size and part number for that diode? should I look up the one in the original maple mini?
I know there are sizes like 0805, but by looking at the diode I don’t know what it corresponds too.
If someone can advise on what to replace it with, that would be great.

BTW, one of the other maple minis I ordered has arrived, so now I have at least two to work with. :D


martinayotte
Sun May 03, 2015 7:59 pm
Hi Victor,

Maybe this AVX datasheet will help : http://www.avx.com/docs/catalogs/AVX%20 … asheet.pdf

But purchasing them in low quantity is maybe a problem.
Doing quick search, it seems that SOD-323 is 0805 equivalent. If true, then, maybe something on eBay like the following can be Ok :

http://www.ebay.com/itm/50pcs-SMD-Diode … 1442784389

(in fact, looking at my mini with a magnifier, it seems that it is actually an S4 diode).


victor_pv
Mon May 04, 2015 1:08 pm
I checked the schematic for the Maple, and does not show the part number for the diode, but shows the size SOD-323, so I think you are right.
I went ahead and ordered those, thanks for the link!

RogerClark
Tue May 05, 2015 5:32 am
Victor,

Getting hold of a single SM diode is probably going be tricky.

See what your local electronics supplier has got e.g. 1nN5404 and solder on a normal one in place of your short.

Anyway, interesting to know what happened.

Perhaps I should have a go at moving this to the maple mini thread for future reference once your repair is complete


victor_pv
Wed May 06, 2015 12:15 pm
Roger, Martinayotte linked to a seller in ebay selling 50 of those for $2, so I just ordered those from ebay.
I don’t think I can buy it cheaper than that anywhere for a single one, so I’ll just have the other 49 around for free…
As the board works fine with a short, I’m not in a hurry and can wait for the delivery from china.

Moving it to the Maple mini section for reference seems like a good idea.


RogerClark
Wed May 06, 2015 7:45 pm
Victor

It’s always good to have spares ;-)

Re moving the thread

Ok. Will make sure the database is backed up and then I will have a go at moving the whole thread

Cheers

Roger


ahull
Mon May 25, 2015 11:11 am
Magic smoke revisited….

I fitted a battery for the RTC to my “Blue Pill” board having checked that VBATT was not attached to anything else first. This worked without any problems…

However I then went to perform the same trick for the “Ugly board” (below).

Image

Now the mistake I made was not checking that the VBATT pin was not connected to anything else….. you can see where this is going…..

Image

All went well for a few minutes, long enough to load a sketch in fact… then BANG! (and I do mean BANG!)… followed by a rather interesing (and no doubt mildly toxic) smell.

OOPS! Fortunately I had wrapped the battery holder and battery in tape, so the shrapnel didn’t go flying round the room. Both battery and holder were destroyed in this little experiment. :oops:

The moral of the story is… if you are fitting a battery to VBAT. check first that the board manufacturer hasn’t simply hooked this pin to 3v3.. if so you need a rechargeable battery or a diode to protect your cell from being converted into a firecracker.


ahull
Mon May 25, 2015 12:34 pm
Low noise version of the “Ugly board” – remove R14 – no more loud bangs.

Image

Now which idiot thought it was a good idea to fit a zero ohm link there in the first place? :cry:
Is that the worst soldering job you have seen on one of these STM32 boards? My removal of R14 is the neatest work on the board :D


martinayotte
Wed Jun 17, 2015 7:50 pm
victor_pv wrote:Roger, Martinayotte linked to a seller in eBay selling 50 of those for $2, so I just ordered those from ebay.
I don’t think I can buy it cheaper than that anywhere for a single one, so I’ll just have the other 49 around for free…

madias
Wed Jun 17, 2015 9:11 pm
Welcome to the club, martinayotte!
(Nearly) the same happened to me 2 weeks ago. Funny fact: After “burn” the mini works again, so I think the diode is no diode anymore but a bidirectional “jumper wire” (ok, I should really replace it ;) )

ahull
Wed Jun 17, 2015 9:35 pm
Can anyone else smell burning?!

Image


martinayotte
Wed Jun 17, 2015 9:43 pm
:lol:
I’m still able to laugh since I’ve temporarly replaced the diode with a 0R (in the mean time I received my diode order), and my board still working.
Oufff ! (I’m also lucky for my USB port)

ahull
Wed Jun 17, 2015 10:07 pm
Given my track record for blowing things up, perhaps I should just order a bunch of diodes too, ‘cos its bound to happen to me sooner or later. :D

victor_pv
Thu Jun 18, 2015 12:32 am
martinayotte wrote:victor_pv wrote:Roger, Martinayotte linked to a seller in eBay selling 50 of those for $2, so I just ordered those from ebay.
I don’t think I can buy it cheaper than that anywhere for a single one, so I’ll just have the other 49 around for free…

martinayotte
Thu Jun 18, 2015 1:04 am
I thought about that to reduce your inventory to 48 … :)
But, yes, too expensive … Better use the Chinese postal subvention … :lol:

mrbwa1
Thu Jun 18, 2015 2:34 pm
ahull wrote:Can anyone else smell burning?!

Image


victor_pv
Thu Jun 18, 2015 11:15 pm
I have a mig welder with some 30.000uF capacitors, some times they get hot if I am welding for a while, I just hope I never have to see the black smoke going on those…

BTW, I think I just may have to reduce my intentory to 48… I just shorted something to GND in a maple mini and is not powering anymore… after all it makes sense to buy 50 of those at once :lol:


martinayotte
Fri Jun 19, 2015 2:10 am
victor_pv wrote:I have a mig welder with some 30.000uF capacitors, some times they get hot if I am welding for a while, I just hope I never have to see the black smoke going on those…

victor_pv
Fri Jun 19, 2015 2:54 am
victor_pv wrote:BTW, I think I just may have to reduce my inv entory to 48… I just shorted something to GND in a maple mini and is not powering anymore… after all it makes sense to buy 50 of those at once :lol:

zmemw16
Fri Aug 07, 2015 7:17 pm
victor_pv wrote:
What called my attention is that I was uploading some sketch that would take 15KB or so, and I went to find the .bin file to upload it with st-link, and found the bin was 20KB, checked the content, and found that chunk or extra data at the end.

ahull
Thu Nov 05, 2015 12:04 am
Confession time.. I just connected one of my ESP8266 boards to my genuine FTDI cable…
Now the FTDI cable is stamped 3V3 on the USB shell, so being of limited intellect I presumed that meant that VCC from the cable would be 3V3… Never assume, always measure (or even, read the datasheet). The data pins are 3V3, but VCC is 5V…. :(

ESP8266 boards get very hot when you overfeed them. :cry: One more puff of magic smoke curls heavenwards. However at £1.67 for a replacement, this was fairly cheap as smoke related incidents go.


mrburnette
Thu Nov 05, 2015 2:11 am
ahull wrote:<…>One more puff of magic smoke curls heavenwards.

madias
Thu Nov 05, 2015 9:04 am
Meanwhile I would nominate ahull for the official title:
“special electronic pitmaster of the year”

ahull
Thu Nov 05, 2015 11:07 am
madias wrote:Meanwhile I would nominate ahull for the official title:
“special electronic pitmaster of the year”

zmemw16
Fri Nov 06, 2015 11:43 am
chip with ready made hole for the string?

srp


bianchifan
Sat Jan 23, 2016 6:44 am
victor_pv wrote:…. I saw the “magic black smoke” coming our of my maple.
It was a very quick short somewhere, the MCU still gets detected by St-Link, and even writes and verifies the code successfully, but doesn’t turn on the led properly any more, neither gets detected even as a DFU device…

zmemw16
Sat Jan 23, 2016 12:24 pm
DO NOT USE FINGER AS TEMPERATURE PROBE!

it hurts for a really long time as it’s a very high usage and highly nerved appendage. in my case a reversely powered ATMega16, no smoke, no colour, just that, that smells warm sense.


RogerClark
Sat Jan 23, 2016 8:34 pm
I am not a doctor, but If you burn your finger (but still have skin intact etc) I recommend you Immediately put it in iced water and keep it cold for several minutes.

I probably burn myself on various thing a few times a year, including just accidentally touching hot metal baking trays ( at 180 deg C), and the cold water trick usually means I dont end up with any long lasting pain


zmemw16
Sat Jan 23, 2016 8:44 pm
unfortunately it was really hot, skin straight to dark tan colour.
additionally it’s the finger i took about 1/8″ off the tip with grass scythe when i was 12 or so.
last thing my mother said was don’t!
doctors and then an auction, every time the hammer went, so did my finger.
it’s been extra sensitive ever since.

stephen


RogerClark
Sat Jan 23, 2016 8:58 pm
yikes…

I must have fast reaction times, as i normally don’t hold my finger on hot things long enough to do that much damage.


stevech
Sat Jan 23, 2016 11:37 pm
RogerClark wrote:I am not a doctor, but If you burn your finger (but still have skin intact etc) I recommend you Immediately put it in iced water and keep it cold for several minutes.

I probably burn myself on various thing a few times a year, including just accidentally touching hot metal baking trays ( at 180 deg C), and the cold water trick usually means I dont end up with any long lasting pain


RogerClark
Sat Jan 23, 2016 11:53 pm
Steve

I think there was sound groundbreaking work done for sever burns (by a british doctor based in Peth Australia) where they said cooling the burn for 20mins, massively improved the recovery.

I agree, after a while, application of some other burn treatment is also beneficial. I think you can buy products for that, I think I may have something in our medical cupboard, but I suspect its just something like Aloe-vera


zmemw16
Sun Jan 24, 2016 2:39 pm
guys, it’s healed, yonks ago. thanks though, the tips have been noted.
i’ve also noticed that things i’d seen with older people and at the time, thought that must hurt or annoy them, actually don’t.

although i’m not a mini anything, 6’3 and a variable 17+2/-3st, the topic seems to fit.

i’ve written off a mini(car) with my head(inside a crash helmet) and a 750cc m/bike, think Tom and Jerry indentation
and i’m the only person the makers know of who’s rolled their recumbent tricycle(ICE Trice QNT) 540degs.
the technique involves rain, tarmac and a steel drains cover, i got turned broadside as the left front skidded on the cover, then stopped on tarmac suddenly.

also got others, one involving a 1:6, 1:4 and a further 1:6 need i say downhill. i walked away, my kneecaps got saved by my fairing and i missed out on a helicopter ride; severely scared some council workers as i aborted a downhill into a 90 bend and went right instead.

stephen


zmemw16
Tue May 17, 2016 10:25 pm
playing with 0.96″ 128×64 i2c displays on nano as maple mini’s are playing silly b*****s with com issues, eventually got the sh1106 library, copied over the missing swap a, b define from ssd1306, now it compiles & works!

unstable, not a lot of memory free, i need my maple mini’s

started checking the rest, caught just a tiny wisp of blue smoke. rewired the bread board, vcc and gnd pins swapped on the display
retried, showing only bottom right quadrant sized missing alternate dots demo resulted, bent pins over and threw it.

carefully checked the vcc, gnd, scl and sda pin sequence on the rest and all wired appropriately checked out ok

next the spi ones … … …

stephen


Leave a Reply

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