Me again. I tried to help you with the Coldfire problem.
> I programmed the MCU. Initially it did not want to program but reducing the debug shift frequency to 0.04MHz did the trick.
Is that a problem? I've never looked at these chips (but have just downloaded the Data Sheet and Reference Manual). What internal clock rate do they default to?
Anyway, not the current problem...
You've had ColdFire chips dying and now the Kinetis ones are. There are two common factors. You're the first one. The other possibility is your bench supply. I have a bench supply in a cupboard here, built by an idiot who really didn't know what he was doing. Meaning me, when I was about 20. It has a nasty fault. When I turn it on or off, one of the supplies when set to 5V glitches to about 20V. Make sure your one isn't doing anything nasty like that.
> (see figure 1).
You can insert pictures in-line in this forum if you want to make your posts easier to read.
> some of the MCUs start to smoke and are damaged permanently
That's called "letting the magic smoke out", or "failing the smoke test". That's really bad. Software can't do that (since the HCF instruction on the 6800).
Don't you have an oscilloscope you can take a DIGITAL capture of? Those photographs only show me that the timebase is set to 50 ms/div because you wrote that on top of the picture. Otherwise they're out of focus, badly overexposed and don't show the voltage/division or where the zero line is. I would like to know the voltage levels of all parts of the waveform. For instance, is that spike in Figure 2 going below zero? If it is showing that, is it "real" or is the oscilloscope probe connected badly? If any pins on the chip ever go below -0.3V or above VDD+0.3 you can kill the chip.
You didn't answer a question I asked in your Coldfire post that is still relevant. How much CURRENT is the board drawing?
Do that, and then try to explain the results. Hint, "Smoke" takes a lot of power, and that means a lot of current.
> The MCU runs happily for a while but then starts to fail
Sounds like it is overheating. Is the chip getting hot?
If you don't want smoke you should always set the current limit on your power supply to a bit above what you expect the board to draw. Then when the power supply goes into overload, it lets you know you've done something wrong by turning an indicator light on. it won't end in smoke that time.
Check the Data Sheet for the absolute maximum (120mA) and the expected maximum current consumption from "Table 9. Power consumption operating behaviors" of FOUR milliamps.
If "following the electrons" (the current) doesn't lead to what's going wrong, you must be exceeding the voltage limits of the chip on one or more pins. That can cause:
Latch-up - Wikipedia, the free encyclopedia
Also read the Data Sheet for the maximum "Injection Current".
Tom