摘要 |
PROBLEM TO BE SOLVED: To prevent the destruction of an input/output interface, etc. of an electronic controller for a vehicle when data on a different type of a vehicle is accidentally written into data peculiar to individual vehicle types.SOLUTION: A CPU 6 of an electronic controller for a vehicle includes an identification data comparing means 15, a checksum data comparing means 16, and an input/output port setting means 17. In an initialization process right after turning on of a power supply, the identification data comparing means 15 compares hardware identification data 13 stored in a ROM 4 with hardware identification data 9 stored in a first memory means 2, and the checksum data comparing means 16 compares a result of calculation of checksum data in an area in which a control program 11 in the ROM 4 is written with checksum data 12 stored in the ROM 4. Only when both of the comparisons by the identification data comparing means 15 and the checksum data comparing means 16 result in matching, the input/output port setting means 17 carries out input/output port setting. |