The application discloses a kind of
relay protection device bare core program log recording method and
system.The
relay protection device
chip used in the method and
system is multicore AMP architecture
chip, wherein CPU core is divided into bare core and
system core operation, and there is
shared memory between bare core and system core.For the log recording of non-interrupt program, the log content is converted into
ASCII code using bare core printf interface, and then placed into
shared memory and output by serial printing.For the log recording of interrupt program, logmsg interface is used to only place log content into
queue for saving, and the data in
queue is converted into
ASCII code in a special
information processing task, and then placed into
shared memory and output by serial printing.
System core log storage thread reads LOG information in shared memory, and then writes log in the form of text into power-fail-safe
file system Tpsfs.The method and system of the application can fully meet the requirements of
relay protection device in different execution
delay requirements to complete log recording, and improve the efficiency of log recording.