iMac suddenly shutdown with previous cause -128
Dear all,
in the last days I'm facing a problem with my iMac.
It randomly shutdown, sometimes restarting by itself, sometimes having to disconnect the electricity and wait a couple of minutes to restart.
I upgraded my iMac several months ago with an external SSD connected via Thunderbolt port, and added extra RAM, but everything works perfectly since months.
I've tried reinstalling OS X, but nothing changed.
I've measured the temperature using emcfancontrol, but nothing special (max 60° Centigrade).
I've tried running Apple Hardware Test, holding "D" key while iMac boots, but AHT doesn't start, I just have the recovery windows where I can run Disk Utility, reinstall OS X etc, but no Hardware test.
The only message I found on the console after a sudden restart is "Previous shutdown cause: -128". Anyone knows what does it means ?
And do you have any idea on how can I run the Hardware test ?
Many thanks in advance
iMac Mid 2011
iMac, Mac OS X (10.7.5), OS X installed on external SSD