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

ADC with Circular DMA on long buffer, not working well

Hi everybody!I'm trying to acquire data from the ADC1 with two channels, and store them in a 40k long buffer with Circular DMA.The problem is the following: it seems that every about 3k samples the ADC stops workinkg for a while and then starts again...

Why UART1 block UART2

Hello ST Community,I use two UARTs at the same time, 1 to communicate with a sensor and the other to communicate with the BlueNGR-M2SP BLE module.The UART2 is configured with DMA IDLE because the length of the frame I receive varies and the UART1 has...

PCong.1 by Associate II
  • 1391 Views
  • 5 replies
  • 0 kudos

Target not responding after motor starts running

Hi,I am using STM32H743VI MCU for running a BLDC motor. When I debug and run the code without connecting the motor then I can able to debug the code and I also printing some messages on the UART, its working fine. As soon as I connect the motor with ...

RJain.1 by Associate III
  • 315 Views
  • 0 replies
  • 0 kudos

I am trying to communicate between Bluepill and Arduino but I am not able to see the data transfer happening. The code details are as below:

STM32F103C(Bluepill) Tx:#include "stm32f103x6.h"#define USART2CLKEN (0x01UL << 17U)#define SYS_FREQ 72000000#define APB1_CLK 36000000#define UART_BAUDRATE 9600void uart2_write(int ch);void uart2_tx_init(void);int main(void){ uart2_tx_init(); while(1)...

SVemp.2 by Associate II
  • 1306 Views
  • 8 replies
  • 0 kudos

UART using DMA communication problem

Hello,​I'm posting a question to get advice on a problem about communication with UART using DMA.​I wrote code like followings : Transmit data only when HAL_DMA_STATE is ready.   if(HAL_DMA_GetState(hdma) == HAL_DMA_STATE_READY)  HAL_UART_Transmit(hu...

HKim.28 by Associate
  • 625 Views
  • 1 replies
  • 0 kudos

Resolved! I am trying to transfer a character using uart in stm32f030 to pc , done with initialization with uart config there is no errors but I am not able to see data sent .please help

void uartInit(){ USART_InitTypeDef uartInitStruct; GPIO_InitTypeDef gpioInitStruct; RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOA, ENABLE); RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1, ENABLE); gpioInitStruct.GPIO_Pin = GPIO_Pin_9 | GPIO_Pin_10; gpioIni...

ag n.1 by Associate II
  • 1482 Views
  • 7 replies
  • 0 kudos