Skip to main content
Visitor II
May 16, 2022
Solved

How does the STM32CubeMonitor real-time data streaming work under the hood?

  • May 16, 2022
  • 2 replies
  • 1318 views

Hi,

I want to understand fundamentally how the STM32CubeMonitor is able to monitor my memory and the tradeoffs of using such software.

Is there some documentation on the topic? I can't find anything.

How does the atomicity work? Is the core stopped while the st-link is reading memory? Are you using special ARM cortex-m instructions?

Thanks,

Gabriel

EDIT: if needed, I'm using the STM32CubeMonitor v1.4.0

    This topic has been closed for replies.
    Best answer by Javier1

    The core doesnt look to me to be stopped while the stlink is reading memory, i am able to run motor control algoritms and very fast softpwm syntetizers while using cubemonitor without any spurious spike.

    It is my understanding the SWD peripheral accesses the AHB bus independently so if your application makes intensive use of the AHB bus you might notice something.

    https://www.cnblogs.com/shangdawei/p/4753040.html

    2 replies

    Javier1Answer
    Graduate II
    May 16, 2022

    The core doesnt look to me to be stopped while the stlink is reading memory, i am able to run motor control algoritms and very fast softpwm syntetizers while using cubemonitor without any spurious spike.

    It is my understanding the SWD peripheral accesses the AHB bus independently so if your application makes intensive use of the AHB bus you might notice something.

    https://www.cnblogs.com/shangdawei/p/4753040.html

    GBert.2Author
    Visitor II
    May 17, 2022

    Interesting @Javier Muñoz​, I'm gonna take a look at the AHB bus.