STM32 MCUs Products

Ask questions, find answers, and share insights on STM32 products and their technical features.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! STM32F427 I2S with DMA - noise - not audio

I don't use libraries.I got I2S working by polling. Below was my test. I had an array of 16 bit signed words for a tone of 1khz. The I2S pins from the MCU feed a an external DAC and produces a very nice tone.  RCC->APB1ENR |= RCC_APB1ENR_SPI3EN...

Joe.H by Senior
  • 1080 Views
  • 3 replies
  • 0 kudos

Changing PWM during runtime using timers

Went through examples of Nucleo -L073RZ eval board for PWM outputIt generates four PWM waves using Timer 2 channel 1 ,channel2 ,channel 3,channel 4at 50%,25%,12.5.37.5% duty cycle . So the pwm duty cycle is fixed.but i have a fan pwm connected to T...

SA.17 by Associate III
  • 1024 Views
  • 3 replies
  • 0 kudos

Currently im working on STM32F103R8 and im trying to create delay using TIM3 ,the following is my code but i didnt get perfect output.Please someone kindly help me to overcome from this.

#include "stm32f10x.h"void init();void Timer_delay();void main(){ init(); Timer_delay(); while(1) {  while(TIM3->SR & 0x0001)/*Check the TIM3 update interrupt occurs or not*/  TIM3->SR = 0x0000;/*Remove TIMx update interrupt flag */   GPIOA->BSRR^=0X...

Sm.16 by Associate II
  • 1142 Views
  • 7 replies
  • 0 kudos

Receiving data from USART

I am trying to use asynchronous USART on stm32L4R5ZI nucleo board for sending and receiving data. Following is related part of code.while (1) { HAL_GPIO_TogglePin(LD2_GPIO_Port,LD2_Pin); //Toggle LED HAL_Delay(1000); //Delay 1 Seconds for(...

PToma.14 by Associate II
  • 1267 Views
  • 5 replies
  • 0 kudos

USART_SendBreak not available on STM32F373

Hi,I have to configure a STM32F373 as a LIN Master. The problem is that the function USART_SendBreak is not available.The reference manual says that I have to set the SBKRQ bit to send the break frame, but this bit is only available for a break reque...

mllona by Associate II
  • 444 Views
  • 0 replies
  • 0 kudos

OSPI readonly in memory mapped mode

I use the STM32L4R9I-EVAL Board and try to configure the ospi on nor-flash for readonly in memory mapped mode. there is an example projekt in Hal-Lib L4 V1.14.0. If i skip the erase and write steps, it read out wrong values (with out hal error)!Do an...

Leo_Panda by Associate III
  • 1286 Views
  • 1 replies
  • 0 kudos