It is possible the ECU is bad, and I've had it suggested before. However, being an electrical engineer, I find it very unlikely that an ECU would just "go bad". They should be one of if not the most dependable electronic component on the car. I would be inclined to suspect many other parts before giving in and replacing the ECU as a last resort. In my case, I don't have any strange codes to suggest it, just strange operating characteristics.
All that said, strange things happen and it very well could be the ECU.
Mine: 2006 Mazda3 s GT Hatch: 115k, Gray, Manual
Gone: 2002 SVT, #1654
Hers: 2012 Focus Ti Sedan: 55k, SGM, Manual