Suppose i work for a company that does chiptuning car modules.
Suppose that we are testing a new product. We tested it on a customer's car for two days and no problems. Customer gets back the car, less than half an hour later he calls us saying that the ECU reports an anomaly.
99,9996% of the time what happens is that the *----* customer disconnected the module while the ECU was still powered (so no more signal from the sensor/s) because he wants to test if there is an effective HP gain and he doesn't care or believe us if we provide an off-on function
BUT
of course he would NEVER do that.
Anyway, we did some preliminary tests and we found out something interesting: with the module installed the 5V power line sits at about 0,5V but if we disconnect the module and connect the prex sensor directly it works. next time you start the engine the ECU clears the error code automatically. And that's unusual.
And if we wait for the ECU to switch off (5V line goes back to 0V) then start the engine the Error code gets cleared automatically. Again, unusual. Convenient, but unusual.
My thought was that the ECU measured too much current coming from the prex sensor so it limited it to see if it was a faulty sensor or something fishy was happening (already happened in other recent cars. the performance chip shares the same supply line. we were actually expecting for something like this to happen but this is the third car, all same model, and the only one to have this problem.)
the increased current consumption that may have caused the problem might have come from excessive heat -> increased current consumption -> greater inrush current from the sensor at engine start -> alarm
we didn't catch this during tests because we were at room temperature in lab and in the car the lid of the box that contains the performance hcip was off so we could program it on board. probably that provided enough airflow.
So the first thing i tried was to monitor the current consumption and the 5V rail while heating the board and MCU with a hot gun. the current increased by about 10%.. until the MCU was really , really hot and it crashed. i don't think it fell into a software trap or the oscillator stopped running because there are two LEDs that are fixed ON during normal operation.. and they were switched off.
The 5V rail was still at 5V but we switched the engine off and on and the rail fell to 0.5V
However, when i disconnected and reconnected the module it started working again.
I am wondering.. what the hell happened? i don't think that there is a thermal shutdown mode in the MCU. Surely it's not mentioned anywhere
it is a dsPIC33EV256GM106 by the way
that's fascinating, what might happen with heat (i am so bloody sure that the customer messed around with the cables, but what happened when overheating the MCU... (150°C rated, rest of the circuit has 125°C parts minimum))
first thing tomorrow i'm adding an ADC scan to the core temperature sensor so we can monitor it but let's hear some toughts

the excessive heat should alter the transfer characteristic of the MOSFETS inside the chip but we are running at a mere 8MHz and again, it wasn't a software crash unless it rebooted and then stalled there or something