<?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-07-10T12:11:02+00:00</updated>
  <generator uri="http://framework.zend.com" version="2">Zend_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[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>
  <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?forumId=7&amp;comments_parentId=8680"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;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?forumId=7&amp;comments_parentId=8674"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;comments_parentId=8674</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[Fail to debug in Win 11  C/C++]]></title>
    <summary type="html"><![CDATA[Hi All
I am new to this and try to follow the book, Bare Metal C Embedded systems. So far everything went smoothly. I am on a Win11, have installed Mingw64 with Msys2 installer. Have installed System Workbench for STM32 (Eclipse). 
When I run the sample program, Hello World it works fine. When I enter the debugger and step through line by line I get not output. When reaching the last line I get this message:

Quote: “__Can't find a source file at "C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crtexe.c" 
Locate the file or edit the source lookup path to include its location.__”

I have tried to include the mingw64\bin to my Build > Environment and in Debug Configurations under Source, I have added the File System Directory.
File explorer shows no sign of a file called “crtexe.c”.
I do not have any file in C:/M which does not exist and it should be a backslash.
I have tried to clean and rebuild. Assisted with Copilot I went through the different options. The last option Copilot gave was to reach out the the experts in community forums. Here I am.

Any suggestions is highly appreaciated.]]></summary>
    <published>2024-12-18T19:48:07+00:00</published>
    <updated>2024-12-18T19:48: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=8670"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;comments_parentId=8670</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[Firmware has not been found locally]]></title>
    <summary type="html"><![CDATA[Hello, comrades. I need to install firmware manually as the PC on which I work has no internet connection.
I use nucleo-f103rb board. System WorkBench is installed from fresh downloaded distributive under Ubuntu 24.
I downloaded firmware from https://github.com/STMicroelectronics/STM32CubeF1. (I cloned it with submodules). Then packed to zip file. An put to [home dir]/.ac6/SW4STM32/firmwares.
Now I have:
[home dir]/.ac6/SW4STM32/firmwares/STM32F1xx (folder)
[home dir]/.ac6/SW4STM32/firmwares/STM32F1xx.zip (archive)
I still have message. "Target firmware has not been found locally, please install it".
What I am doing wrong?
I have read all the post about this problem, but I am still have no results :(]]></summary>
    <published>2024-12-02T06:43:21+00:00</published>
    <updated>2024-12-02T06:43:21+00:00</updated>
    <link rel="alternate" type="text/html" href="https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;comments_parentId=8667"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;comments_parentId=8667</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[Zephyr RTOS on STM32]]></title>
    <summary type="html"><![CDATA[__Zephyr Workbench__, a VSCode extension to manage Zephyr OS on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
__Main features:__
* Install host dependencies.
* Import toolchain and SDK.
* Create, configure, build and manage apps.
* Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit https://marketplace.visualstudio.com/items?itemName=Ac6.zephyr-workbench]]></summary>
    <published>2024-10-03T12:46:13+00:00</published>
    <updated>2024-10-03T12:46:13+00:00</updated>
    <link rel="alternate" type="text/html" href="https://www.openstm32.org/tiki-view_forum_thread.php?forumId=2&amp;comments_parentId=8645"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?forumId=2&amp;comments_parentId=8645</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[[Solved - sort-of] Pre-install probelm for sw4stm32 ide]]></title>
    <summary type="html"><![CDATA[Hi,

I am trying to install the 64-bit sw4stm32 ide on Debian Bookworm. According to this website, (see https://www.openstm32.org/Downloading%2Bthe%2BSystem%2BWorkbench%2Bfor%2BSTM32%2Binstaller) I need to ensure that both libc6:i386 and lib32ncurses5 re installed, due to the compiler and other tools being 32-bits.

I tried to do this using "sudo apt-get install libc6:i386 lib32ncurses5", as shown on the website. The system responded with :
~$ sudo apt-get install libc6:i386 lib32ncurses5
[sudo] password for stuart:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libc6:i386
E: Unable to locate package lib32ncurses5

Can someone please suggest how these packages can be installed ?

Stuart]]></summary>
    <published>2024-09-27T11:51:28+00:00</published>
    <updated>2024-09-27T11:51:28+00:00</updated>
    <link rel="alternate" type="text/html" href="https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;comments_parentId=8640"/>
    <id>https://www.openstm32.org/tiki-view_forum_thread.php?forumId=7&amp;comments_parentId=8640</id>
  </entry>
</feed>
