banner

News

May 17, 2023

Solution for debugging and profiling multiple automotive devices

In recent years, the automotive industry has been in the midst of several major transformations. This situation has led to major changes in trends and requirements. Numbers and scales of required features such as connectivity, autonomous driving, driver assistance systems, and electrification have been increasing every year. Both the features and mounting of ECUs have been increasing. Furthermore, vehicle electronic and electrical architectures (E/E architectures) have been evolving in response to the increasing complexity of the systems.Controlling such systems requires coordinated operation by the multiple devices of which the ECU is comprised.

The following problems arise in the development of software in an environment which requires the coordinated operation of multiple devices.

Renesas is working on the development of solutions for resolving the problems in developing software for multiple devices that were described above. In the remainder of this post, we introduce one such solution, synchronous logging (sync logging).Sync logging is a solution for the debugging or profiling of systems which consist of multiple devices. This solution provides a means for understanding what processing was proceeding in each of the multiple devices at the same time. To understand the behavior of each device, the user will use a Linux tool such as strace or perf along with log messages embedded in the software. The information on the times of log messages helps the user to identify the reasons for errors because this allows confirmation of the behavior of the software running on other devices at the times when the errors occurred.The user will also use a Linux commands or tools such as perf, top, or vmstat, which output a log of the time information, as a means for understanding the states of resource usage on each of the devices. Such commands or tools help the user to understand the state of the system loads at specific times because the information on the states of resource usage can be analyzed by synchronizing the times of log messages with the time information the commands or tools provide.

The system for sync logging consists of the trace manager and trace monitor tools, which respectively run on the host PC and the devices. The data that are output by the software or tools which run on the devices are sent to the trace manager on the host PC by the trace monitor. The trace manager outputs the data which have been sent from the multiple devices in order of time. Analyzing the output data enables the user to understand the information on what processing by the software on each device was proceeding at the same time or the weights of the system loads that were being applied.

Sync logging has been developed with environments for the evaluation of the R-Car S4 and R-Car V4H as the targets. In the future, support for sync logging will be expanded to include next-generation R-Car products and other automotive MCU products as the targets. In addition, Renesas is continuously working on the addition of features and improvements to usability by expanding the range of tools to be supported and displaying the collected data in ways that are easy to understand.If you are interested in the software development environment for multiple devices, contact us through the support page.

SHARE