Skip to main content
JAN R
Associate III
February 4, 2019
Question

Tracealyzer in STOP mode

  • February 4, 2019
  • 5 replies
  • 1235 views

Hi,

I have question about streaming data to Percepio TraceAlyzer when the MCU is in Tickless mode - in my case in STOP mode (main clock is stoped). I use FreeRTOS and STM32L152VB. My application periodically wakes up with period T=1.5 s. I use for timing of FreeRTOS the RTC (runnig from LSI clock). When I want to use Live Streaming, it works only maybe 1 second, and then it stops streaming.

 I enabled the DEBUG support for low power modes. In STOP mode by enabling DBG_STOP in DBGMCU_CR register or calling   LL_DBGMCU_EnableDBGStopMode function. But the result is same.

When I do not go to STOP mode it works well.

Any advice?

Thank you very much. Jan.

This topic has been closed for replies.

5 replies

Tesla DeLorean
Guru
February 4, 2019

Discuss with Percepio support, not much traffic here discussing it.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
JAN R
JAN RAuthor
Associate III
February 5, 2019

I discussed, but they only advised the enabling DBG_STOP  bit...

waclawek.jan
Super User
February 5, 2019

Check, if it's still set at the moment when it stops "streaming".

Btw., what is the mechanism of "streaming", in terms of STM32 or Cortex-M documentation?

JW

JAN R
JAN RAuthor
Associate III
February 5, 2019

There is written:

Debug support for low-power modes

In Stop mode, the bit DBG_STOP must be previously set by the debugger. This will

enable the internal RC oscillator clock to feed FCLK and HCLK in STOP mode....

JAN R
JAN RAuthor
Associate III
February 5, 2019

NOW it works - I randomly changed the TRC_CFG_CTRL_TASK_DELAY from 10 to 2