cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MX as a live peripheral interface

RChap.1
Associate II

I have a request.

The complexity of the peripheral features and the peripheral registers with the inter dependent settings makes it difficult to get everything right the first time or even after multiple tries.  This involves a code generation, code compile and download just to try one different setting. This is not very efficient nor is it a good use of available resources. 

Would it be possible to use the STM32MX GUI as a direct controller to modify peripheral settings in real time as the micro is running? I'm working with a comparator, a timer, DMA, and DFSDM. When I try to interconnect them so the run without code, I have very little visibility to what is going on and trying out many configurations and combinations can be very time consuming.

There is a lot of power in the peripherals but it is not easy to tinker and try things out. I have used the debug IDE to modify peripheral registers in real time, but that has its hazards.

Firstly, there is no feature driven interface just bits in a register which may or may not require other bits to be set.

Secondly, if a peripheral is clicked on to be viewed in the SFR tab without breaking the micro first, the whole application hangs and must be restarted killing the debugger first. This bug has been here for years and I can't believe no one has fixed it!

2 REPLIES 2
Andrew Neil
Super User

@RChap.1 wrote:

Would it be possible to use the STM32MX GUI as a direct controller to modify peripheral settings in real time as the micro is running?


No.

A debug session in STM32CubeIDE (or other IDE of your choice) is the only option.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
TDK
Super User

Reading the reference manual is a faster method for learning how register settings affect behavior.

If you feel a post has answered your question, please click "Accept as Solution".