Page 1 of 1

Sysview tracing both cores

Posted: Thu Dec 13, 2018 2:32 pm
by filip_andrev
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

Re: Sysview tracing both cores

Posted: Fri Dec 14, 2018 7:02 am
by ESP_igrr
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.