No SWV output on port 0

Discuss how to use the features of Atollic TrueSTUDIO, including the editor, assembler, C/C++ compiler, linker, debugger, static code analysis and team collaboration tools.

Moderators: Markus Girdland, Mattias Norlander

KKoovalsky
Posts: 1
Joined: Fri Aug 10, 2018 8:22 am

No SWV output on port 0

Postby KKoovalsky » Fri Aug 10, 2018 8:35 am

Hi.
I want to get SWO output on STM32L432kc. I enabled all the configuration related to the SWV:
1. Enabled SWD debugging
2. Enabled SWV and set CLK to 4MHz (I configured that clock speed with CubeMX)
3. Configured trace
4. Started trace on debugging session start

I can see that messages appear in the trace log, but ITM_SendChar won't send any data to port 0.

Example log:

Code: Select all

"0";"Sync";"48";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"1";"Sync";"48";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"2";"Sync";"48";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"3";"ITM Port 13";"4009262412";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"4";"ITM Port 29";"3956290175";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"5";"ITM Port 20";"6140";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"6";"DATA_TRACE_VALUE (comp 3) (W)";"3937616452";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"7";"ITM Port 26";"58335";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"8";"ITM Port 29";"125";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"9";"ITM Port 29";"53980";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"10";"ITM Port 31";"4294868692";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"11";"DATA_TRACE_VALUE (comp 3) (W)";"4293916899";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"12";"DATA_TRACE_VALUE (comp 0) (W)";"65500";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"13";"ITM Port 29";"3623796990";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"14";"ITM Port 26";"49878";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"15";"Data trace address offset  (comp 3)";"0xc9bc";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"16";"ITM Port 31";"4294958314";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"17";"ITM Port 13";"3703488476";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"18";"ITM Port 28";"2128527337";"9768 ?";"?";"No timestamp received for packet, cycles value guessed. "
"19";"ITM Port 29";"4294825961";"9768";"2.442000 ms";"Timestamp delayed. "
"20";"ITM Port 18";"220";"26092 ?";"?";"No timestamp received for packet, cycles value guessed. "
"21";"ITM Port 22";"252";"26092 ?";"?";"No timestamp received for packet, cycles value guessed. "
"22";"ITM Port 1";"2461200840";"26092 ?";"?";"No timestamp received for packet, cycles value guessed. "
"23";"ITM Port 29";"4208253667";"26092 ?";"?";"No timestamp received for packet, cycles value guessed. "
"24";"ITM Port 30";"173";"26092 ?";"?";"No timestamp received for packet, cycles value guessed. "
"25";"ITM Port 28";"3706245112";"26092 ?";"?";"No timestamp received for packet, cycles value guessed. "
"26";"ITM Port 26";"6120";"26092 ?";"?";"No timestamp received for packet, cycles value guessed. "
"27";"ITM Port 29";"234";"26092 ?";"?";"No timestamp received for packet, cycles value guessed. "
"28";"ITM Port 30";"65202";"26092";"6.523000 ms";"Packet delayed. "
"29";"DATA_TRACE_VALUE (comp 0) (R)";"236";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"30";"ITM Port 9";"3";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"31";"ITM Port 29";"2129328604";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"32";"ITM Port 28";"1424676060";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"33";"DATA_TRACE_VALUE (comp 3) (W)";"23250";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"34";"ITM Port 29";"3908926825";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"35";"ITM Port 29";"3527141867";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"36";"ITM Port 26";"255";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"37";"ITM Port 2";"176";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"38";"ITM Port 28";"61055";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"39";"ITM Port 29";"3705873534";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"40";"ITM Port 18";"49105";"268432988";"67.108247 s";"Packet delayed. "
"41";"ITM Port 31";"3599302399";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"42";"ITM Port 8";"51416";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"43";"ITM Port 5";"200996119";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"44";"ITM Port 29";"191";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"45";"Data trace address offset  (comp 3)";"0xebff";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"46";"ITM Port 29";"215";"268432988 ?";"?";"No timestamp received for packet, cycles value guessed. "
"47";"Sync";"80";"268432988";"67.108247 s";"Timestamp delayed. Packet delayed. "
"48";"Sync";"120";"268432997 ?";"?";"No timestamp received for packet, cycles value guessed. "
"49";"Sync";"72";"268432997 ?";"?";"No timestamp received for packet, cycles value guessed. "
"50";"Sync";"64";"268432997";"67.108249 s";"Timestamp delayed. "
"51";"ITM Port 16";"128";"268432997 ?";"?";"No timestamp received for packet, cycles value guessed. "
"52";"ITM Port 0";"32904";"268432997 ?";"?";"No timestamp received for packet, cycles value guessed. "
"53";"ITM Port 2";"129";"268432997 ?";"?";"No timestamp received for packet, cycles value guessed. "
"54";"Data trace address offset  (comp 3)";"0xfe4d";"268432997 ?";"?";"No timestamp received for packet, cycles value guessed. "
"55";"ITM Port 23";"74";"268432997 ?";"?";"No timestamp received for packet, cycles value guessed. "
"56";"ITM Port 29";"62172";"268432997 ?";"?";"No timestamp received for packet, cycles value guessed. "
"57";"ITM Port 29";"3823888596";"268432997 ?";"?";"No timestamp received for packet, cycles value guessed. "
"58";"ITM Port 27";"65492";"268432997";"67.108249 s";""
"59";"Extension";"";"268432999";"67.108250 s";"Timestamp delayed. Packet delayed. "
"60";"Sync";"64";"268433001 ?";"?";"No timestamp received for packet, cycles value guessed. "
"61";"Sync";"176";"268433001 ?";"?";"No timestamp received for packet, cycles value guessed. "
"62";"ITM Port 3";"0";"268433001 ?";"?";"No timestamp received for packet, cycles value guessed. "
"63";"ITM Port 28";"120";"268433001 ?";"?";"No timestamp received for packet, cycles value guessed. "
"64";"ITM Port 17";"80";"268433001 ?";"?";"No timestamp received for packet, cycles value guessed. "
"65";"ITM Port 14";"1122761300";"268433001 ?";"?";"No timestamp received for packet, cycles value guessed. "
"66";"ITM Port 29";"1014950633";"268433001 ?";"?";"No timestamp received for packet, cycles value guessed. "
"67";"ITM Port 29";"212";"268433001 ?";"?";"No timestamp received for packet, cycles value guessed. "
"68";"ITM Port 31";"65532";"268433001 ?";"?";"No timestamp received for packet, cycles value guessed. "
"69";"Extension";"";"268433001 ?";"?";"No timestamp received for packet, cycles value guessed. "
"70";"ITM Port 0";"32";"268433001";"67.108250 s";""
"71";"ITM Port 1";"0";"439390275";"109.847569 s";"Packet delayed. "
"72";"Data trace address offset  (comp 1)";"0xeef3";"439390399 ?";"?";"No timestamp received for packet, cycles value guessed. "
"73";"ITM Port 31";"252";"439390399 ?";"?";"No timestamp received for packet, cycles value guessed. "
"74";"DATA_TRACE_VALUE (comp 3) (W)";"4258069060";"439390399 ?";"?";"No timestamp received for packet, cycles value guessed. "
"75";"ITM Port 29";"3923977342";"439390399 ?";"?";"No timestamp received for packet, cycles value guessed. "
"76";"DATA_TRACE_VALUE (comp 3) (W)";"3946610429";"439390399 ?";"?";"No timestamp received for packet, cycles value guessed. "
"77";"Overflow";"";"439390399 ?";"?";"No timestamp received for packet, cycles value guessed. "
"78";"DATA_TRACE_VALUE (comp 0) (R)";"268500220";"439390399";"109.847600 s";""
"79";"Overflow";"";"439390401";"109.847600 s";""
"80";"ITM Port 0";"255";"439390405";"109.847601 s";""
"81";"Sync";"56";"441422272 ?";"?";"No timestamp received for packet, cycles value guessed. "
"82";"Sync";"120";"441422272 ?";"?";"No timestamp received for packet, cycles value guessed. "
"83";"Sync";"184";"441422272 ?";"?";"No timestamp received for packet, cycles value guessed. "
"84";"ITM Port 16";"128";"441422272 ?";"?";"No timestamp received for packet, cycles value guessed. "
"85";"Extension";"";"441422272 ?";"?";"No timestamp received for packet, cycles value guessed. "
"86";"ITM Port 7";"65278";"441422272 ?";"?";"No timestamp received for packet, cycles value guessed.  Page 2"
"87";"Extension";"";"441422272 ?";"?";"No timestamp received for packet, cycles value guessed. "
"88";"Counter overflow (Unknown)";"";"441422272 ?";"?";"No timestamp received for packet, cycles value guessed. "
"89";"ITM Port 9";"3561881570";"441422272 ?";"?";"No timestamp received for packet, cycles value guessed.  Page 3"
"90";"DATA_TRACE_VALUE (comp 3) (W)";"4275230416";"441422272 ?";"?";"No timestamp received for packet, cycles value guessed. "
"91";"Data trace address offset  (comp 3)";"0xc8bc";"441422272 ?";"?";"No timestamp received for packet, cycles value guessed. "
"92";"ITM Port 29";"4294835634";"441422272";"110.355568 s";"Timestamp delayed.  Page 3"
"93";"ITM Port 0";"252";"441422272 ?";"?";"No timestamp received for packet, cycles value guessed.  Page 3"
"94";"Sync";"56";"441422272";"110.355568 s";"Timestamp delayed. "
"95";"Sync";"56";"441422272";"110.355568 s";""
"96";"Extension";"";"441422276";"110.355569 s";""
"97";"ITM Port 1";"45956";"441422278 ?";"?";"No timestamp received for packet, cycles value guessed. "
"98";"Extension";"";"441422278 ?";"?";"No timestamp received for packet, cycles value guessed. "
"99";"ITM Port 13";"4278185983";"441422278 ?";"?";"No timestamp received for packet, cycles value guessed. "
"100";"ITM Port 24";"46182";"441422278 ?";"?";"No timestamp received for packet, cycles value guessed. "
"101";"ITM Port 1";"3941198792";"441422278 ?";"?";"No timestamp received for packet, cycles value guessed. "
"102";"Data trace address offset  (comp 3)";"0xf43c";"441422278 ?";"?";"No timestamp received for packet, cycles value guessed. "
"103";"ITM Port 29";"212";"441422278 ?";"?";"No timestamp received for packet, cycles value guessed. "
"104";"ITM Port 31";"65532";"441422278 ?";"?";"No timestamp received for packet, cycles value guessed. "
"105";"ITM Port 16";"107";"441422278 ?";"?";"No timestamp received for packet, cycles value guessed. "
"106";"ITM Port 13";"3906926157";"441422278 ?";"?";"No timestamp received for packet, cycles value guessed. "
"107";"ITM Port 28";"2129324537";"441422278 ?";"?";"No timestamp received for packet, cycles value guessed. "
"108";"ITM Port 30";"40703";"441422278 ?";"?";"No timestamp received for packet, cycles value guessed. "
"109";"ITM Port 29";"53442";"441422278";"110.355570 s";""
"110";"ITM Port 24";"54008";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"111";"ITM Port 31";"3418352631";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"112";"ITM Port 29";"63";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"113";"ITM Port 24";"65489";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"114";"Data trace address offset  (comp 2)";"0x3200";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"115";"ITM Port 29";"4279479225";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"116";"ITM Port 29";"74";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"117";"ITM Port 29";"62172";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"118";"ITM Port 29";"3823888596";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"119";"ITM Port 27";"65492";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"120";"Data trace address offset  (comp 3)";"0xefff";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"121";"Data trace address offset  (comp 0)";"0xbf6b";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"122";"ITM Port 9";"3822484860";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"123";"ITM Port 29";"63";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"124";"ITM Port 24";"59644";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"125";"ITM Port 30";"56530";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"126";"ITM Port 24";"3824772300";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"127";"ITM Port 5";"3112093531";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"128";"ITM Port 9";"56554";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"129";"ITM Port 30";"54507";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"130";"ITM Port 29";"4292139747";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"131";"ITM Port 28";"64767";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"132";"DATA_TRACE_VALUE (comp 2) (W)";"27470";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"133";"DATA_TRACE_VALUE (comp 3) (W)";"4276513867";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"134";"ITM Port 30";"32322";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"135";"ITM Port 31";"3959417047";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"136";"ITM Port 27";"4294967295";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"137";"DATA_TRACE_VALUE (comp 1) (W)";"4110352381";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"138";"DATA_TRACE_VALUE (comp 1) (R)";"1186948680";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"139";"ITM Port 24";"58326";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"140";"ITM Port 13";"63";"697257720 ?";"?";"No timestamp received for packet, cycles value guessed. "
"141";"Data trace address offset  (comp 3)";"0xf43c";"697257720";"174.314430 s";"Timestamp delayed. Packet delayed. "
"142";"ITM Port 1";"3368763370";"697257724 ?";"?";"No timestamp received for packet, cycles value guessed. "
"143";"PC Sample";"0xbd7febe9";"697257724 ?";"?";"No timestamp received for packet, cycles value guessed. "
"144";"ITM Port 28";"65276";"697257724 ?";"?";"No timestamp received for packet, cycles value guessed. "
"145";"ITM Port 0";"3";"697257724 ?";"?";"No timestamp received for packet, cycles value guessed. "
"146";"Extension";"";"697257724 ?";"?";"No timestamp received for packet, cycles value guessed. "
"147";"ITM Port 18";"8";"697257724 ?";"?";"No timestamp received for packet, cycles value guessed. "
"148";"Overflow";"";"697257724 ?";"?";"No timestamp received for packet, cycles value guessed. "
"149";"DATA_TRACE_VALUE (comp 3) (W)";"3812387837";"697257724 ?";"?";"No timestamp received for packet, cycles value guessed. "
"150";"ITM Port 26";"56450";"697257724 ?";"?";"No timestamp received for packet, cycles value guessed. "
"151";"ITM Port 8";"58326";"697257724 ?";"?";"No timestamp received for packet, cycles value guessed. "
"152";"DATA_TRACE_VALUE (comp 2) (W)";"60307";"697257724 ?";"?";"No timestamp received for packet, cycles value guessed. "
"153";"ITM Port 29";"63";"697257724 ?";"?";"No timestamp received for packet, cycles value guessed. "
"154";"ITM Port 24";"54911";"697257724 ?";"?";"No timestamp received for packet, cycles value guessed. "
"155";"ITM Port 31";"4294967295";"697257724";"174.314431 s";""
"156";"Sync";"56";"0";"0.000000 s";""
"157";"Sync";"56";"0";"0.000000 s";""
"158";"Sync";"88";"0";"0.000000 s";""
"159";"Sync";"96";"0";"0.000000 s";""
"160";"ITM Port 4";"152";"0";"0.000000 s";""
"161";"ITM Port 0";"2975007248";"0";"0.000000 s";""
"162";"ITM Port 21";"4109695778";"0";"0.000000 s";""
"163";"ITM Port 26";"94";"0";"0.000000 s";""
"164";"ITM Port 20";"240";"0";"0.000000 s";""
"165";"ITM Port 22";"53650";"0";"0.000000 s";""
"166";"DATA_TRACE_VALUE (comp 3) (W)";"4157925840";"0";"0.000000 s";""


I tried every SWO clock speed, but with no luck.

What more can I check?

Return to “Atollic TrueSTUDIO tool discussions”

Who is online

Users browsing this forum: No registered users and 1 guest