<?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 forums</title>
  <subtitle type="text">Latest forum topics.</subtitle>
  <logo>https://www.openstm32.org/img/tiki/Tiki_WCG.png</logo>
  <updated>2026-11-26T11:49:40+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-forums_rss.php"/>
  <id>https://www.openstm32.org/</id>
  <entry>
    <title type="html"><![CDATA[Designing a Raspberry Pi CM4 Carrier Board: Key Hardware and PCB Layout Considerations]]></title>
    <summary type="html"><![CDATA[{syntax type="markdown" editor="plain"}
The Raspberry Pi Compute Module 4 (CM4) is a useful option for embedded applications that need more processing capability without designing a complete computing platform from scratch.

However, developing a custom carrier board around the CM4 requires careful planning. The carrier board needs to handle power distribution, peripheral connectivity, thermal management, and mechanical integration while keeping the overall design reliable.

Here are a few considerations worth discussing when developing a CM4 carrier board.

**1. Power supply design**

A typical carrier board may need multiple voltage rails for the CM4 and connected peripherals. Pay attention to regulator current capacity, power consumption during startup, and proper decoupling.

**2. High-speed interface routing**

USB and HDMI interfaces require careful PCB routing. Maintaining differential pair geometry, controlling trace lengths, and providing continuous ground reference paths are important for signal integrity.

**3. Peripheral integration**

Interfaces such as audio, microSD, USB, HDMI, fan control, and GPIO should be planned according to the application's requirements. Connector placement also needs to account for enclosure dimensions and accessibility.

**4. Thermal management**

For applications involving continuous processing, consider heatsink clearance, airflow, and fan control. A temperature-based fan control strategy can help balance cooling performance and noise.

**5. Testing and reliability**

Accessible test points, power monitoring, and hardware watchdog functionality can make debugging and long-term operation easier.

I recently came across a practical CM4 carrier board design by PCBCool, a company providing PCB manufacturing and PCBA services. The design brings together power management, USB expansion, HDMI, audio, microSD, and fan control on a compact two-layer PCB.

For anyone interested in the actual schematic and layout decisions, here's the detailed design guide:

**CM4 Carrier Board Design Guide:** https://pcbcool.com/technical-guides/cm4-carrier-board-design-guide/

**I'd like to hear from other embedded developers:**

When designing a custom carrier board around a compute module, which part do you find most challenging?

Is it power management, high-speed signal routing, thermal management, or fitting all the required interfaces into a compact PCB?

Also, do you prefer a two-layer design for simpler applications, or would you consider a four-layer PCB for better routing flexibility and signal integrity?]]></summary>
    <published>2026-11-24T11:19:09+00:00</published>
    <updated>2026-11-24T11:19:09+00:00</updated>
    <link rel="alternate" type="text/html" href="https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;comments_parentId=8877"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;comments_parentId=8877</id>
  </entry>
  <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?forumId=7&amp;comments_parentId=8876"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;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?forumId=7&amp;comments_parentId=8875"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;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?forumId=7&amp;comments_parentId=8873"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;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?forumId=7&amp;comments_parentId=8871"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;comments_parentId=8871</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[System Workbench for STM32 v3.0 beta release]]></title>
    <summary type="html"><![CDATA[System Workbench for STM32 3.0 beta is available.

||__Release__|3.0 beta
__Release date__|July 28, 2026
__Previous release__|2.9
__Platforms__|Windows 64-bit, Linux 64-bit||

__In one line:__ 3.0 beta is 2.9 moved onto Eclipse 2026-06 and Java 21, with the STM32 functionality, the toolchain and the user interface deliberately left as they were.

!!What changed
The Eclipse platform underneath:
||__Component__|__2.9__|__3.0 beta__
Eclipse Platform|4.6.3 (Neon.3, 2017)|2026-06
CDT|9.2.1|11.x
Java runtime|Oracle JRE 8|Temurin JRE 21, bundled
Git tooling|EGit 4.6|EGit / JGit matching Eclipse 2026-06||

This is the whole point of the release: nine years of Eclipse and CDT fixes, Java 21, up-to-date Git tooling, and an IDE that runs on supported software again.

Packaging:
* Available as an installer and as a self-contained portable archive (unzip and run).
* The portable package bundles its Java runtime; nothing needs to be installed on the machine and nothing is written to the registry.
* File associations can be registered from Preferences > System Workbench > File Association.

The build system was rebuilt on a self-contained Maven/Tycho build; this matters to maintainers, not to users.

!!What deliberately did not change
__No toolchain was updated in this release.__ The compiler, debugger server and programming tools are the exact same builds that 2.9 shipped:
||__Tool__|__Version__|__Status__
GNU ARM GCC|st-gnu-arm-gcc-7-2018-q2-update (gcc 7.3.1)|unchanged
OpenOCD|ST build 0.10.0+dev-00021-g524e8c8|unchanged, same binary
ST-LINK Server|discovered from your existing installation|unchanged
Probe scripts|the same 87 board configuration files|unchanged||

Moving the IDE and the toolchain at the same time would make any regression impossible to attribute; toolchain updates are a separate exercise.

Everything you interact with is unchanged: project wizard, MCU and board lists (128 boards, 1433 MCUs), generated projects, build settings and flags, debug configurations, messages, icons and menus. This was verified file-by-file against 2.9, with zero differences in user-visible strings, extension definitions and icons.

!!Known limitations in this beta
||__Area__|__Note__
STM32MP1 CoPro-MPU|The MPU add-on features are not included (they depend on Eclipse RSE, discontinued upstream). STM32MP1 devices still appear in MCU and board selection.
SVN|Subversive is archived upstream and is not included. Git (EGit) is.
Firmware downloads|Some of the older StdPeriph endpoints no longer respond, as in 2.9. STM32Cube downloads work.
Appearance|Rendering follows Eclipse 2026-06 and the host OS, so fonts and spacing differ slightly from the 2017 look. Layout, labels, field order and icons are unchanged.||

!!Upgrading from 2.9
* Install alongside: nothing is shared and the existing installation is untouched.
* Use a fresh workspace; existing projects import normally.
* Launch configurations are read as-is and move in both directions between 2.9 and 3.0 beta.

This is a beta release: please report any problem in the [https://www.openstm32.org/tiki-view_forum.php?forumId=7|System Workbench for STM32 forum].

Downloads (registered users): [https://www.openstm32.org/Downloading+the+System+Workbench+for+STM32+installer|Downloading the System Workbench for STM32 installer]]]></summary>
    <published>2026-07-28T22:26:38+00:00</published>
    <updated>2026-07-28T22:26:38+00:00</updated>
    <link rel="alternate" type="text/html" href="https://www.openstm32.org/tiki-view_forum_thread.php?forumId=2&amp;comments_parentId=8862"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?forumId=2&amp;comments_parentId=8862</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?forumId=7&amp;comments_parentId=8813"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;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?forumId=7&amp;comments_parentId=8749"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;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?forumId=7&amp;comments_parentId=8715"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;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?forumId=7&amp;comments_parentId=8696"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;comments_parentId=8696</id>
  </entry>
</feed>
