Using stm studio for variable monitoring

For me it isn’t about debugging code, but watching variables without slowing down the loop.
Maybe find better PID values here and there…
I’ve started using sFOC for different MCUs supported by arduinoIDE, why would I switch to another platform?

Well, I believe the current version of ArduinoIDE include debugging support?

My point was not that anyone should change IDE… everyone should use whatever they like best. I was just suggesting that using and configuring 2 IDEs is a complicated way to work. But if it’s right for you, then its right for you :smiley:

oh yeah I heard something about debugging in the new arduino, they really messed up the software though with the latest changes, it’s really buggy. Crashes and problems all over. I think it might only be the premium version that has debugging. I’ll probably check it out so I can be safe and sound inside the comfy cushy arduino world instead of the big mean nasty big boy playground :slight_smile:

The new Trace Viewer looks promising

1 Like

I have always been curious about SWO but never understood how it works.
Is this reading the SWO trace over SWD? Or you need some additional hardware to get this to the PC? Something like orbuculum?

It’s another pin, pb3 in my case.
It’s not exposed on the Chinese stlink but can be added by soldering a wire.

And that trace goes to stlink or something similar?

It’s a pin on the chip that you connect to your debug probe

1 Like

Too good!
I didn’t know STMViewer
thanks for sharing.

1 Like