To erase abnormality information stored in a different electronic controller by stopping communication with a corresponding electronic controller in rewriting a program for control in a device for rewriting a program for control stored in one of a plurality of electronic controllers connected through a network.
A program rewriting device 10 rewrites the program for control stored in a flash memory 41 by communicating with an electronic controller 40. Electronic controllers 50 and 60 communicate with the electronic controller 40 and store abnormality information of communication when the communication is disconnected. In rewriting the program, failure history is read from the electronic controllers 50 and 60, the failure history is erased after program rewriting has been completed, and the program is then written back to the electronic controllers 50 and 60. Thus, it is possible to erase the abnormality information stored involved in the program rewriting.
WATANABE TOSHIYUKI