Skip to main content
Mohammad A
Senior
May 3, 2019
Solved

Differences between Live Expressions and SWV

  • May 3, 2019
  • 2 replies
  • 1886 views

What's the difference between Live Expressions and SWV Data Trace?

Are they both realtime?

Do both of them put a load on MCU processor?

Can I use Live Expressions with MCUs which do not provide SWO pin like CortexM0?

This topic has been closed for replies.
Best answer by Markus GIRDLAND

Live Expressions does not require any specific peripheral in the MCU which means you can use it with Cortex-M0 while the SWV is required for SWV data trace.

Neither put any real load on the MCU processor.

SWV utilizes timestamps which gives more precise knowledge of when the memory access happened on the target device, live expressions doesn't.

SWV is limited to 4 memory addresses while Live Expression is in theory unlimited while adding many variables will cause slower periodic updates.

The main benefit of Live Expressions is that it's easy to set up and get started and that it works on any Cortex-M.

2 replies

Markus GIRDLAND
ST Employee
May 6, 2019

Live Expressions does not require any specific peripheral in the MCU which means you can use it with Cortex-M0 while the SWV is required for SWV data trace.

Neither put any real load on the MCU processor.

SWV utilizes timestamps which gives more precise knowledge of when the memory access happened on the target device, live expressions doesn't.

SWV is limited to 4 memory addresses while Live Expression is in theory unlimited while adding many variables will cause slower periodic updates.

The main benefit of Live Expressions is that it's easy to set up and get started and that it works on any Cortex-M.

Mohammad A
Senior
May 7, 2019

Thank you. Your answer was perfect.

Mohammad A
Senior
May 7, 2019

But one last question, is it safe to use these debug methods in applications where timing is critical?

Markus GIRDLAND
ST Employee
May 9, 2019

It's very precise so it should be. But I don't know the different demands that is required to be certified in different fields such as medical equipment etc.