STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

UART behavior on reception error, flags set, e.g. PE, NE, FE

Alright, I am searching the STM32L4 reference manual (RM0351), and as far as I can see, there is no description of how the UART is expected to behave when various "reception error" flags are set. In my case, I am observing NE when resetting a modem, ...

apullin by Associate II
  • 957 Views
  • 1 replies
  • 0 kudos

Caprure compare Interrupt

I try to generete interrupt when CNT register reach any value. But It generete when I enabled to interrupt EGR bit is always zero. when I try to change accept first bit not effected.It is configuration  capture = TIM_GetCapture2(ExternalOSCTimer); TI...

0693W00000Y9bCXQAZ.png 0693W00000Y9bCSQAZ.png
hdemi.1 by Associate III
  • 812 Views
  • 3 replies
  • 0 kudos

STM32F407 RTC sporadically showing future time

Most of the future time occurs around 12:00 in the morning, here are the instances captured on the device:1. The actual time is: 2023-01-11 11:59:55, the STM32F407 RTC time is: 2023-01-12 12:00:002. The actual time is: 2022-12-31 11:59:58, the STM32F...

zhuij.1 by Associate II
  • 1163 Views
  • 5 replies
  • 0 kudos

Resolved! Reconfigure the synchronized timers

Hi, I'm using STM32F407 development board. I synchronized TIM2 as master and TIM5 as slave. Timer initialization functions:void TIM2Config (void) { // 1. Enable the TIM2 clock RCC->APB1ENR |= RCC_APB1ENR_TIM2EN; // 2. Set clock coeff. as 2, ena...

0693W00000Y9oyoQAB.png 0693W00000Y9p1iQAB.png

STM32F1:How to change the I2C address when program running

I'm trying to change the I2C address by using HAL_Deinit & HAL_Init, but it doesn't seem to work. The function below is what I wrote myself to change the address:If I try to change the address,the register shows that the I2C address has been changed,...

0693W00000Y9p1OQAR.png 0693W00000Y9p1JQAR.png 0693W00000Y9p7HQAR.png 0693W00000Y9p8AQAR.png
YZhan.14 by Associate
  • 931 Views
  • 0 replies
  • 0 kudos

STM32h7 Multichannel ADC DMA is not working.

Hi,I am try to read four ADC Channels of ADC3 using DMA method. But I did not get the data.Below is my programmingstatic void MX_ADC3_Init(void){ ADC_ChannelConfTypeDef sConfig = {0}; hadc3.Instance = ADC3; hadc3.Init.Resolution = ADC_RESOLUTION_16B;...

MDeva.1 by Associate II
  • 1552 Views
  • 3 replies
  • 0 kudos

UART transmit works succesfully but reciever don't

The device I am using is F303K8T6.I am trying to learn. I have no problem with transmitting.But when it comes to receive data it don't works. Interrupt not rises.But when I connect tx pin to rx pin it works well. Interrput rised. The code and concern...

0693W00000Y9or4QAB.png 0693W00000Y9orFQAR.png
SinanOZ by Associate
  • 528 Views
  • 1 replies
  • 0 kudos

STM32 H745. Is it possible to trigger a dma transfer from memory to SPI on rising/falling edge of pwm generated from a timer?

Hello, I'm having trouble reading from external ADC which needs a maximum time of 10ns from the falling edge of command (I'm giving it from a TIM4 PWM mode 1, 300ns active, 100kHz frequency). I'm using TIM3 as a slave timer from TIM4, one shot and TI...