Sysview tracing both cores

filip_andrev
Posts: 2
Joined: Thu Dec 13, 2018 2:16 pm

Sysview tracing both cores

Postby filip_andrev » Thu Dec 13, 2018 2:32 pm

Hello. I have problem with tracing both cores using sysview tracing tool. I can't even trace both cores with sysview_tracing example. Tracing only one core works fine. I had tried using both gdb and telnet with various parameters for start and stop commands, but unfortunately the result was the same.
That's what error says:

Code: Select all

> esp32 sysview start file:///tmp/sysv0.svdat file:///tmp/sysv1.svdat 0
Total trace memory: 16384 bytes
Open file /tmp/sysv0.svdat
Invalid 'cmd_data->poll_period' arg!
Not enough args! Need 1 trace data destinations!
Trace data processor thread exited with 0
Failed to init cmd ctx (-4)!
Versions of tools that I use:
esp-idf v3.3
openocd 2018-11-05

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: Sysview tracing both cores

Postby ESP_igrr » Fri Dec 14, 2018 7:02 am

By default, sysview tracing example sets FreeRTOS I to single core mode. You can change that in menuconfig, under Component Config / FreeRTOS. Then rebuild and flash the application. Once you do that, it should work.

Keep in mind that SystemView GUI can not show traces from both cores at the same time, so you have to load either one trace or another.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 114 guests