cancel
Showing results for 
Search instead for 
Did you mean: 

How to save variables to a file (csv or similar) using expressions

TLinq.1
Associate

I am running a STM32L412 and am trying to debug some ADC samples, this is done by saving to a dbg_ADC[2000] after ADC sampling, the program is then halted and the expressions are copied out. Currently with version 1.10.1 it crashes too often, sometimes i can copy out 1000 samples and other times i can copy out just a few hundred before crashing and need to restart the program, this happens on all PCs.

So the question is, is there a better way to save expressions/variables/ADC samples to a file for later analysis?

1 ACCEPTED SOLUTION

Accepted Solutions
Semer CHERNI
ST Employee

Hello @TLinq.1​ 

First let me thank you for posting.

I may suggest the usage of Serial Wire Tracing to trace the needed data.

For more detail check the 4.2 SWV debugging section from the STM32CubeIDE user guide.

KR,

Semer.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
Semer CHERNI
ST Employee

Hello @TLinq.1​ 

First let me thank you for posting.

I may suggest the usage of Serial Wire Tracing to trace the needed data.

For more detail check the 4.2 SWV debugging section from the STM32CubeIDE user guide.

KR,

Semer.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.