change(sysview): drop ESP mcore extension

This commit is contained in:
Erhan Kurubas
2025-06-18 23:29:05 +02:00
parent 6ae68c4f86
commit 168d95d1ef
2 changed files with 558 additions and 473 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -50,16 +50,13 @@ def split_segger_multicore_file(file_path):
header = f.read(200)
header_str = header.decode('utf-8', errors='ignore')
core0_offset = None
core1_offset = None
for line in header_str.split('\n'):
if '; Offset Core0' in line:
core0_offset = int(line.strip().split()[-1])
elif '; Offset Core1' in line:
if '; Offset Core1' in line:
core1_offset = int(line.strip().split()[-1])
if core0_offset is None or core1_offset is None:
logging.error('Failed to parse core offsets')
if core1_offset is None:
logging.error('Failed to parse core1 offset')
return None, None
# Read the entire file
@@ -258,12 +255,11 @@ def main():
proc.print_report()
proc.cleanup()
if len(temp_files) > 0:
for file in temp_files:
try:
os.remove(file)
except Exception as e:
logging.warning('Failed to remove temporary file %s: %s', file, e)
for file in temp_files:
try:
os.remove(file)
except Exception as e:
logging.warning('Failed to remove temporary file %s: %s', file, e)
if __name__ == '__main__':