Electronic control device and write control method
An electronic control device includes: a microcomputer including a processor that executes a predetermined program; and an external nonvolatile memory connected to the microcomputer, in which the microcomputer includes an internal nonvolatile memory, a first communication unit that communicates with the external nonvolatile memory, and a second communication unit that communicates with an external device, and the microcomputer writes data, which is received from the external device and rewrites the internal nonvolatile memory, in the internal nonvolatile memory and the external nonvolatile memory.
1 . An electronic control device comprising:
a microcomputer including a processor that executes a predetermined program; and
an external nonvolatile memory connected to the microcomputer,
wherein
the microcomputer includes a second processor, an internal nonvolatile memory, a first communication unit that communicates with the external nonvolatile memory, and a second communication unit that communicates with an external device, and
the microcomputer, in response to a single received instruction comprising data from the external device:
stores the data received as part of the single received instruction in a data buffer; and
writes the data in parallel from the data buffer to both the internal nonvolatile memory and the external nonvolatile memory using the processor and the second processor.
2 . The electronic control device according to claim 1 , wherein
the microcomputer includes a received data storage unit that stores the data received from the external device, and
data identical to the data stored in the received data storage unit is written in the internal nonvolatile memory and the external nonvolatile memory.
3 . The electronic control device according to claim 2 , comprising:
a first processor that performs write processing on the internal nonvolatile memory; and
a second processor that performs write processing on the external nonvolatile memory,
wherein
the first processor writes the data received from the external device in the received data storage unit and the internal nonvolatile memory, and
the second processor writes the data stored in the received data storage unit in the external nonvolatile memory.
4 . The electronic control device according to claim 1 , wherein when the data received from the external device is compressed and encrypted, the microcomputer decompresses and decrypts the data received from the external device and writes the data in the internal nonvolatile memory, and
writing the data received from the external device in the external nonvolatile memory without decompressing and decoding the data.
5 . A write control method executed by an electronic control device,
wherein the electronic control device includes a microcomputer including a processor that executes a predetermined program, and an external nonvolatile memory connected to the microcomputer,
the microcomputer includes a second processor, an internal nonvolatile memory, a first communication unit that communicates with the external nonvolatile memory, and a second communication unit that communicates with an external device, the microcomputer, in response to a single received instruction comprising data from the external device:
stores the data received as part of the single received instruction in a data buffer;
and writes the data received from the external device in parallel from the data buffer to both the internal nonvolatile memory and the external nonvolatile memory using the processor and the second processor.