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

STM32F4 USART IRQ Problem

I am using USART2 (with IRQ) of STM32F4 for MIDI Receive (31250 bd, 8 Bit, 1Start/Stop Bit). A MIDI Message has normally 3 Bytes following directly on each other, which gives each Byte a duration of ca. 320us. In 1 of 10-30 events one Byte (always B...

DBrow by Associate II
  • 661 Views
  • 3 replies
  • 0 kudos

I am using UART1 of STM32F407VE in interrupt method. I am checking loopback method.But I am losing some characters . I am using docklight serial monitor to send 20-30 set of characters.I need to store around 255 bytes of data to a buffer.

This is my interrupt handler...void USART1_IRQHandler(void)   { uint8_t data;   HAL_UART_IRQHandler(&huart1); __HAL_UART_CLEAR_FLAG(&huart1, UART_FLAG_RXNE); data = (uint8_t)(huart1.Instance->DR & (uint16_t)0x00FFU); HAL_UART_Transmit(&hua...

VC T by Associate
  • 410 Views
  • 0 replies
  • 0 kudos

FIFO question ?

Dear Members,How can I save FIFO ?I have a psedo code :for (i = 0; i < NUM_SAMPLES_TO_READ; i++) {Read FIFO_DATA;Save IR[15:8];Read FIFO_DATA;Save IR[7:0];Read FIFO_DATA;Save R[15:8];Read FIFO_DATA;Save R[7:0];}STOP;my code :   for(i=0;i<=number_samp...

What is the Best oscillator Value of HSE oscillator for STM32L476 such that the power consumption is minimum? How does the peripherals react to it?

I am using STM32L476.In it I am using MSI as a clock source, I want to switch to HSE as Clock Source, I want to know the best oscillator to use (4-48Hz) so that the power consumption is minimum, also I want to know if there would be any change in the...

HShah.14 by Associate
  • 322 Views
  • 0 replies
  • 0 kudos

Using SDRAM and STM32

Hello,My questions are as follows:1. Can I use DDR-SDRAM with FMC or should i use SDRAM only?2. Can I use two SDRAMs and control them with "Chip Select" pin? I want to use this SDRAM. This SDRAM is similar to used on the STM32F779EVAL board, but 512M...

Slh by Senior
  • 472 Views
  • 2 replies
  • 0 kudos

USART3 initialization in stm32f103r8

#include "stm32f10x.h"void usartSetup (void);int SendChar ();int main(){ while(1) { usartSetup(); SendChar(); }}void usartSetup (void) {RCC->APB1ENR = 0x00040000; RCC->APB2ENR = 0x0000000C;  GPIOB->CRH  = 0x00000900; USART3->BRR = 0x340; USART3->CR1 ...

GS by Associate
  • 552 Views
  • 1 replies
  • 0 kudos