<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-us">
  <title type="text">Tiki RSS feed for forum: System Workbench for STM32</title>
  <subtitle type="text">Latest posts to this formThis forum is meant to discuss problems and suggestions on System Workbench for STM32.</subtitle>
  <logo>https://www.openstm32.org/img/tiki/Tiki_WCG.png</logo>
  <updated>2026-11-18T00:23:11+00:00</updated>
  <generator uri="https://getlaminas.org" version="2">Laminas_Feed_Writer</generator>
  <link rel="alternate" type="text/html" href="https://www.openstm32.org/"/>
  <link rel="self" type="application/atom+xml" href="https://www.openstm32.org/tiki-forum_rss.php?forumId=7"/>
  <id>https://www.openstm32.org/</id>
  <entry>
    <title type="html"><![CDATA[STM32 UART IDLE Detection vs. Modbus RTU Frame Timing]]></title>
    <summary type="html"><![CDATA[{syntax type="markdown" editor="plain"}
Hi everyone,

I’m looking into how to handle Modbus RTU communication on an STM32 using the HAL library and an RS-485 transceiver, and I have a question about receiving complete frames reliably.

One thing I’m trying to understand is the difference between using UART IDLE detection and a timer to detect the end of a Modbus RTU frame. Since IDLE detection can trigger after roughly one character time, it may not be enough to confirm the required 3.5-character silence between frames.

For example, at 9600 baud with 8E1 configuration, would you normally use a hardware timer that restarts whenever a byte arrives, or is there a better approach using the STM32 UART peripheral?

I’ve been reading some STM32 and RS-485 implementation notes, including a PCBCool technical guide [Modbus RTU Client on STM32 over RS-485](https://pcbcool.com/technical-guides/building-a-modbus-rtu-client-on-stm32-over-rs-485/) and I’m interested in how developers handle this in real projects.

A few things I’d like to understand:
- Do you prefer UART interrupts or DMA for receiving Modbus RTU frames?
- How do you reliably detect the end of a frame?
- Are there any common pitfalls with UART IDLE detection or receiver timeout configuration on STM32?

I’d appreciate hearing how others have implemented this, especially on STM32F4 or similar devices.

Thanks!]]></summary>
    <published>2026-10-23T12:35:32+00:00</published>
    <updated>2026-10-23T12:35:32+00:00</updated>
    <link rel="alternate" type="text/html" href="https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8876"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8876</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[Project C/C++ Build Environment PATH missing]]></title>
    <summary type="html"><![CDATA[{syntax type="markdown" editor="plain"}
Hello, 

I install a new version sw4stm32 work bench in a new laptop, but I have a sw4stm32 project with "fr.ac6.mcu.externaltools.arm-none.win32_1.17.0.201812190825" compiler link in sw4stm32 (20170314-1500)

but the new version sw4stm32 workbench is "fr.ac6.mcu.externaltools.arm-none.win32_1.17.0.202607282131". 

I found in c/c++ build/Environment PATH is user:config as shown below:

how can I update this path automatically based on sw4stm32 version?

Regards,]]></summary>
    <published>2026-10-22T14:51:04+00:00</published>
    <updated>2026-10-22T14:51:04+00:00</updated>
    <link rel="alternate" type="text/html" href="https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8875"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8875</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[Stm32f405rgt6 stm32f407vgt6 spike noise]]></title>
    <summary type="html"><![CDATA[{syntax type="markdown" editor="plain"}
Title: STM32F405RGT6 ADC3 → DMA → DAC1: Random Short Glitches at 100 kHz
Hello,
I am working on a real-time audio ADC-to-DAC loopback using an STM32F405RGT6.
My current structure is:
ADC3: PA3
DAC1: PA4
Timer trigger: TIM8 TRGO
Sample rate: 100 kHz
ADC: 12-bit with DMA
DAC: 12-bit with DMA
Separate ADC and DAC buffers
No filter or signal processing
I built this structure myself. I am not looking for ready-made code. I am mainly looking for the experience of people who have worked with STM32F405/F407 audio ADC-to-DAC systems and may have encountered the same problem.
The problem: short random spikes / glitches
The main waveform looks correct and continuous, but occasionally I see a very short random spike/glitch on the DAC output.
The glitch is extremely short compared with the audio waveform.
I can also hear it as a small click/crackle in the audio.
A good analogy is touching a stranded wire repeatedly against the positive terminal of a 12 V battery. The connection is almost continuous, but tiny moments of contact/disconnection can produce a small electrical spark and crackling sound.
This is similar to what I see on the oscilloscope: the normal waveform is present, but occasionally there is a very short sharp jump/spike.
I want to find the actual cause of these glitches rather than hide them with filtering.
I am particularly interested in experience with:
ADC → DMA → RAM → DAC → DMA timing
ADC/DAC synchronization
TIM8 TRGO synchronization
DMA transfer timing or underrun
ADC and DAC DMA interaction
Separate buffer synchronization
DMA buffer size
Bus or memory timing on STM32F405/F407
ADC sampling time
DAC DMA configuration
Any relevant STM32F4 errata or known limitations
Has anyone built an STM32F405/F407 audio ADC → DMA → memory → DAC → DMA loopback and encountered similar short random spikes or glitches?
If so, I would really appreciate hearing what caused the problem and how you diagnosed it.
I can provide my CubeIDE/CubeMX configuration, DMA settings, TIM8 configuration, source code, and oscilloscope screenshots if useful.
My main goal is to understand why this very short discontinuity occurs and find a reliable way to obtain a continuously updated DAC waveform.
Thank you.]]></summary>
    <published>2026-10-03T07:48:44+00:00</published>
    <updated>2026-10-03T07:48:44+00:00</updated>
    <link rel="alternate" type="text/html" href="https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8873"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8873</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[STM32 v3.0 beta bugs?]]></title>
    <summary type="html"><![CDATA[{syntax type="markdown" editor="plain"}
Hi,

seems the beta doesn't include stddef.h and also the update site points to nowhere. I then wanted to download 2.9 but couldn't find a link...

Update: solved the issue with stddef.h (maybe my installation was corrupt - used the zip file now) but the update site still doesn't work, fwiw.

Best,
 Willl]]></summary>
    <published>2026-08-23T13:14:18+00:00</published>
    <updated>2026-08-23T13:14:18+00:00</updated>
    <link rel="alternate" type="text/html" href="https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8871"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8871</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[I2S DMA Audio stuttering/repeating snippets on STM32G071RB]]></title>
    <summary type="html"><![CDATA[Hi everyone, I'm new to STM32 and I'm building an audio player. I'm using an SD card (via SPI) to feed audio data to a dac via I2S.The audio stutters and often plays the same 1-2 second snippets twice before moving on.I've tried implementing double buffering and i've checked the i2s configuration in circular mode.Code:https://github.com/darty555/stm32-i2s-dma.git]]></summary>
    <published>2026-03-17T18:06:02+00:00</published>
    <updated>2026-03-17T18:06:02+00:00</updated>
    <link rel="alternate" type="text/html" href="https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8813"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8813</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[Analog servomotors with nucleo f334r8]]></title>
    <summary type="html"><![CDATA[Hi everybody!

I started programming ARM microcontrollers after watching Mr. Patrick Hood-Daniels' tutorials on YouTube. I am using a Nucleo F334R8 development board to control a Puppet animatronic I am making for my niece.

You can see it here:

https://youtube.com/shorts/40tsBrCdnOg?si=NuuiD9RuRrL3VxnX

I want to share the code I used with everyone, hope you find It useful

// PUPPET head servos many positions

include "main.h"
void SystemClock_Config(void);

int main(void) {

int headServo; int neckServo; int handServo; int armServo;

int pulsecounter;

HAL_Init();

SystemClock_Config();

RCC->AHBENR |= RCC_AHBENR_GPIOCEN; RCC->AHBENR |= RCC_AHBENR_GPIODEN;

GPIOD->MODER |=GPIO_MODER_MODER2_0; GPIOD->MODER &= ~(GPIO_MODER_MODER2_1); GPIOD->OTYPER &= ~(GPIO_OTYPER_OT_2); GPIOD->OSPEEDR |= GPIO_OSPEEDER_OSPEEDR2; GPIOD->PUPDR &= ~(GPIO_PUPDR_PUPDR2);

GPIOC->MODER |= GPIO_MODER_MODER4_0; GPIOC->MODER &= ~(GPIO_MODER_MODER4_1); GPIOC->OTYPER &= ~(GPIO_OTYPER_OT_4); GPIOC->OSPEEDR &= ~(GPIO_OSPEEDER_OSPEEDR4); GPIOC->PUPDR &= ~(GPIO_PUPDR_PUPDR4);

GPIOC->MODER |= GPIO_MODER_MODER1_0; GPIOC->MODER &= ~(GPIO_MODER_MODER1_1); GPIOC->OTYPER &= ~(GPIO_OTYPER_OT_1); GPIOC->OSPEEDR |= GPIO_OSPEEDER_OSPEEDR1; GPIOC->PUPDR &= ~(GPIO_PUPDR_PUPDR1);

GPIOC->MODER |= GPIO_MODER_MODER2_0; GPIOC->MODER &= ~(GPIO_MODER_MODER2_1); GPIOC->OTYPER &= ~ (GPIO_OTYPER_OT_2); GPIOC->OSPEEDR |= GPIO_OSPEEDER_OSPEEDR2; GPIOC->PUPDR &= ~(GPIO_PUPDR_PUPDR2);

GPIOC->MODER |= GPIO_MODER_MODER3_0; GPIOC->MODER &= ~(GPIO_MODER_MODER3_1); GPIOC->OTYPER &= ~(GPIO_OTYPER_OT_3); GPIOC->OSPEEDR |= GPIO_OSPEEDER_OSPEEDR3; GPIOC->PUPDR &= ~(GPIO_PUPDR_PUPDR3);

RCC->APB2ENR |= RCC_APB2ENR_TIM1EN;

TIM1->CR1 |= TIM_CR1_CEN;

TIM1->PSC= 48;

TIM1->ARR = 19999;

while (1) {

if (pulsecounter=200 && pulsecounter < 380) { headServo=1000; neckServo=2000; handServo=1500; armServo=1100; } if (pulsecounter>=380 && pulsecounter=560 && pulsecounter=740 && pulsecounterODR |= GPIO_ODR_4; } if (pulsecounter>=1100) { pulsecounter=0; GPIOC->ODR &= ~(GPIO_ODR_4); }

if ( TIM1->CNT < 800 || TIM1->CNT >2300 ) {

if (TIM1->CNT >19996) { if ((GPIOC->ODR & GPIO_ODR_1) && (GPIOC->ODR & GPIO_ODR_2) && (GPIOD->ODR & GPIO_ODR_2) && (GPIOC->ODR & GPIO_ODR_3)) {

}

else { GPIOC->ODR |= GPIO_ODR_1; GPIOC->ODR |= GPIO_ODR_2; GPIOD->ODR |= GPIO_ODR_2; GPIOC->ODR |= GPIO_ODR_3; pulsecounter++; }

} } if (TIM1->CNT >=800 && TIM1->CNT CNT >= headServo && (GPIOC->ODR & GPIO_ODR_1)) { GPIOC->ODR &= ~ (GPIO_ODR_1); }

if (TIM1->CNT >= neckServo && (GPIOC->ODR & GPIO_ODR_2)) { GPIOC->ODR &= ~ (GPIO_ODR_2); } if (TIM1->CNT >= handServo && (GPIOD->ODR & GPIO_ODR_2)) { GPIOD->ODR &= ~ (GPIO_ODR_2); } if (TIM1->CNT >=armServo && (GPIOC->ODR & GPIO_ODR_3)) { GPIOC->ODR &= ~ (GPIO_ODR_3); } }

}

}

void SystemClock_Config(void) {

RCC->CR |= RCC_CR_HSION;

while ((RCC->CR & RCC_CR_HSIRDY)==0) {}

RCC->CFGR &= ~(RCC_CFGR_SW);

while ((RCC->CFGR & RCC_CFGR_SWS) !=RCC_CFGR_SWS_HSI) {}

RCC->CR &= ~(RCC_CR_PLLON);

while ((RCC->CR & RCC_CR_PLLRDY)!=0) {}

RCC->CFGR &= ~(RCC_CFGR_PLLMUL);

RCC->CFGR |= RCC_CFGR_PLLMUL12;

RCC->CR |= RCC_CR_PLLON;

while ((RCC->CR & RCC_CR_PLLRDY)==0) {}

RCC->CFGR |= RCC_CFGR_SW_PLL;

while ((RCC->CFGR & RCC_CFGR_SWS)!= RCC_CFGR_SWS_PLL) {} }]]></summary>
    <published>2025-11-01T04:57:00+00:00</published>
    <updated>2025-11-01T04:57:00+00:00</updated>
    <link rel="alternate" type="text/html" href="https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8749"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8749</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[STM32 MCU model shortlisting for Making RC remote]]></title>
    <summary type="html"><![CDATA[Hi everyone,

which type of stm32 microcontroller is best fit for following operations
for building rc remote of 8 channel and more
low cost
low power consumption
high-speed rf communication and easy integrate with RF chip using SPI port
easy to design and develop
10-bit ADC
low voltage
display interference
RTC]]></summary>
    <published>2025-07-07T13:05:38+00:00</published>
    <updated>2025-07-07T13:05:38+00:00</updated>
    <link rel="alternate" type="text/html" href="https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8715"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8715</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[SPI on Nucleo_STMH533RE]]></title>
    <summary type="html"><![CDATA[Hello, I am unfortunately a beginner in terms of Zephyr, installation compiling works, all no problem, but now I just wanted to configure the SPI as master. Here I break my neck.

I have already looked at many examples, but either the device tree can no longer be compiled or the SPI ends with an error.

Does anyone have a tip for me? Surely a piece of cake for an experienced user?

How do I create a devicetree where I can configure the pins for CS, MOSI, MISO and Clock?]]></summary>
    <published>2025-03-23T08:33:07+00:00</published>
    <updated>2025-03-23T08:33:07+00:00</updated>
    <link rel="alternate" type="text/html" href="https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8696"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8696</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[Configuring DMA for ADC in SW?]]></title>
    <summary type="html"><![CDATA[Hello!

I am relatively new to embedded systems and particularly SW; mainly, I have been using STM32CubeIDE. Our current objective is to modify current code in SW to include DMA to sample an ADC pin and store into a circular buffer in memory. I have a working STM32CubeIDE project which does this, however Importing the project into SW doesn't run, although the code compiles fine.

I have tried to go into STM32CubeMX to change the toolchain over to SW only to find the option removed from V6.6 onwards, so made a brief attempt with a makefile with no luck.

Since I am now trying to get DMA working on a fresh project, could someone explain to me with steps what is needed to correctly configure DMA for this purpose?

Many Thanks!
Sam]]></summary>
    <published>2025-03-04T11:58:26+00:00</published>
    <updated>2025-03-04T11:58:26+00:00</updated>
    <link rel="alternate" type="text/html" href="https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8680"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8680</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[Build a project in "release" mode]]></title>
    <summary type="html"><![CDATA[Hi guys, 

I have the following issue:
At work I had to modify a project wrote years ago by another programmer on an older revision of this development tool.
I've imported the original project. When I click on the build button (the icon with the hammer) I have only the "debug" build option, while in another project using the same micro, wrote in STM32CubeIDE, I have the "debug" and "release" options.

So, if I build the project in debug mode, the board doesn't work. 
I suppose I have to activate the "release" building mode, but I don't know how do this and I don't find any information.

Can someone help me?

Thanks]]></summary>
    <published>2025-02-19T16:35:52+00:00</published>
    <updated>2025-02-19T16:35:52+00:00</updated>
    <link rel="alternate" type="text/html" href="https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8674"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=8674</id>
  </entry>
</feed>
