What is limiting the sampling frequency and timestamp accuracy in CubeMonitor acquisition?
I use the CubeMonitor 1.5 to log and analyze an int32 variable in an STM32L4 controller.
I need to get a new value every 500us, so I use a custom sampling frequency of 2000 Hz.
For some reason the signal is not sampled reliably in 500us intervals. It does work for some period of time. After that the logging skipps one or several samples before continuing with a 500us sample period. Sometimes 10 or more samples are skipped.
I use an ST-Link with an SWD frequency of 4.6 MHz, so I don't see how the SWD bandwidth could be limitting. 4 Byte with 2 kHz sampling frequency requires only 64 kBaud.
Is there anything I can do to get a more reliable and fast readout of STM32 variables?
PS: That the timestamp is only stored in ms resolution is not helpful either, it would be a huge improvement if the timestamp could be stored with higher resolution (at least 100us steps). I use logging to csv in the "myVariables" processing node.
