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

I'm trying to use the MultibufferDMA mode of HAL driver for STM32F769 device. There's not a single example I could find which uses this mode in the list all the applications/demos/examples for STM32 devices. Here's an example call I use :

 // using Double-Buffer DMADMA_HandleTypeDef hdma ;StreamBaseAddr = DMA_CalcBaseAndBitshift(&hdma) ; // get the stream base addr if (HAL_DMAEx_MultiBufferStart_IT(&hdma, StreamBaseAddr, Buffer[0], Buffer[1], BUF_SIZE))     {       Error_Handler();   ...

canbu22 by Associate III
  • 1437 Views
  • 3 replies
  • 0 kudos

DMA to receive unknown length frames with UART

HiI need to listen to Rx UART to receive unknown length frames (I will search for a frame start byte, then read the frame size and then test a CRC for frame validating)I would like to use DMA for performance but I only see half or full reception int...

po221 by Senior
  • 2736 Views
  • 6 replies
  • 0 kudos

SPI Transmit only last word of byffer

HiI'm trying to transmit 4 16-bit words via SPI as slave using interrupts and HAL.I'm using STM32F107VCT6So I specified a buffer:uint16_t buf[] = {0x000F, 0x00F0, 0x0F00, 0x0004};And started to transmit in main:MX_SPI2_Init(); HAL_SPI_Transmit_IT(&hs...

0693W000000XIgzQAG.png
MAnik by Associate
  • 765 Views
  • 3 replies
  • 0 kudos

Resolved! STM32H7 - SAI sampling frequency is 45.5kHz instead of 44.4kHz

Dear all, I am using SAI in STM32H7 to control an external audio codec. Everything works fine except the fact that when I look at the actual sampling frequency (SAI FS signal ) I measure 45.5kHz rather than 44.1kHz as specified in the init. The clock...

Mdi c by Associate III
  • 1406 Views
  • 2 replies
  • 0 kudos

Question about DMA

I have few question about DMA.1)Is that callback function need to be register?2)During the memory copied the source to the destination using DMA is that necessary need include the callback function?CH

Cl.1 by Associate II
  • 350 Views
  • 0 replies
  • 0 kudos

RTC date update - Problem with VBAT / Low Power Mode

Hi all,I searched the forum for my specific problem, but i did not find any solution for this weird occurrence. On my STM32F103 i run the RTC, which is working fine, as long as it is connected to the USB power. I store the date on 2 backup registers,...

MMuts.1 by Associate II
  • 3151 Views
  • 8 replies
  • 0 kudos