MCU log processing method and device

The invention discloses an MCU log processing method and apparatus. The method comprises the steps of setting a mapping relationship between an MCU and an SoC by using remap mapping; according to the mapping relation, the initial address of the pre-created shared memory space is filled into a specif...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: YIN ZHONGJU, ZHANG WENGANG, CHEN MINGCHUN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses an MCU log processing method and apparatus. The method comprises the steps of setting a mapping relationship between an MCU and an SoC by using remap mapping; according to the mapping relation, the initial address of the pre-created shared memory space is filled into a specified address unit of the MCU, so that the MCU writes the data frame of the log to be written according to the initial address; obtaining a write pointer and a read pointer of the shared memory space; when the write pointer is larger than the read pointer, determining that a data frame of the log to be written exists in the shared memory space; analyzing the data frame of the to-be-written log according to the writing pointer and the reading pointer to obtain the to-be-written log; and according to the log type of the to-be-written log, storing the to-be-written log in a corresponding storage space. According to the method, the MCU directly accesses the storage space mounted on the SoC through the remap mapping, so t