STM32CubeIDE (MCUs)

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Read multiple ADC channels using DMA not working.

Hi, I am trying to read multiple ADC channels using DMA method. I am not able to read values. I am not sure what wrong i am doing. /* ADC1 init function */ void MX_ADC1_Init(void) { ADC_ChannelConfTypeDef sConfig = {0};   /** Common config */ ...

RBV by Associate II
  • 768 Views
  • 10 replies
  • 0 kudos

Where should I write the DTCM variable in CUBEIDE?

​I have a problem with the sdcard, so I was looking for the community and they said I can change the DMA's DTCM variable, so I'm trying to insert the code, but I'm wondering how to change the IAR code in CUBEIDE and where to put it.This is the code. ...

0693W000005BQxGQAW.jpg 0693W000005BFi0QAG.jpg
Ljunh.1 by Associate II
  • 323 Views
  • 1 replies
  • 0 kudos

How to use HAL_UART_receive_dma multiple times. When I modify the example project UART_TwoBoards_ComDMA (for nucleo-144 H743ZI2) with a loop of dma receive and dma transmit only the first time the received data is okay.

I connect PC6 with PC7 to get a loopback on my evaluation board.I add the following code:do{ memset( aRxBuffer, 0x00, sizeof(aRxBuffer)); if(HAL_UART_Receive_DMA(&UartHandle, (uint8_t *)aRxBuffer, RXBUFFERSIZE) != HAL_OK)   {    Error_Handler();   ...

Resolved! Triggering ADC/DMA with Timer2 (STM32WB55)

Hello! I had a project where I'm trying to get the ADC/DMA to trigger with timer 2 but I seem to be missing part of the puzzle to getting it up and working. I originally had the ADC/DMA running with "Continuous Conversion" mode set in the ADC, which ...

0693W000003RMCZQA4.jpg 0693W000003RMCUQA4.jpg 0693W000003RMCAQA4.jpg 0693W000003RMC0QAO.jpg
JayDev by Senior II
  • 511 Views
  • 1 replies
  • 0 kudos

Resolved! DMA using HAL Libary does not appear to be functioning

I'm following this tutorial on DMA (https://www.youtube.com/watch?v=EsZLgqhqfO0) which at the end shows how to set up the DMA peripheral to continuously perform ADC conversions and store the results in a circular buffer.I am using an STM32F051C6 (dif...

0693W000002lioMQAQ.jpg 0693W000002lioHQAQ.jpg 0693W000002lio7QAA.jpg
JWyli.1 by Associate II
  • 670 Views
  • 8 replies
  • 0 kudos

Can two DMA work in parallel without competing for Bus?

Hi, I was wondering if the two DMA modules can work simultaneously without competing for Bus?For example:In BusMatrix.png file you can see that both DMA1 and DMA2 are connected SRAM1,SRAM2,AHB1 peripherals and AHB2 peripherals.So if I set the DMA1 to...

LLOLO.1 by Associate II
  • 881 Views
  • 9 replies
  • 0 kudos

Resolved! STM32 DAC DMA Underrun problem

Hi, I am currently working on small project which I need to generate some arbitrary signal using DAC inside STM32G431KB.Code is shown below.#include "main.h" #include "SysClockConfig.h"     uint16_t Output_Buffer[10] = {2048,2048,2048,2048,2048,2048,...

LLOLO.1 by Associate II
  • 1255 Views
  • 3 replies
  • 0 kudos