STM32 MCUs Embedded software

Ask questions and find answers on STM32Cube packages, including HAL, LL and middleware, and expansion software.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Why does HAL_SAI_Receive_DMA() return an 8bit-value?

Most commonly used busses like I2S use a framesize of 64bit (32bit left, 32bit right)DMA uses the bus width (also 32bit)Audiodata with bit depth 8bit is almost useless anywaysSo why does HAL_SAI_Receive_DMA() return an 8bit-value? Wouldn't it be much...

JTedot by Associate II
  • 1526 Views
  • 4 replies
  • 0 kudos

UART vs USB

I have a question regarding the logic of the USB cdc transfer. But beforehand let me show you approach up to nowThis is in a rough version my program, It will be used for feedback control. So a fixed frequency of the main loop is mandatory (as I use ...

0693W00000NppTDQAZ.png
PhKloth1 by Associate II
  • 1653 Views
  • 2 replies
  • 0 kudos

Dividing hardware timer in software

I have a hardware timer using its updateEvent interrupt to increment a ms_passed variable every 1 ms. I have a freeRTOS task reading ms_passed ( via TaskNotification ) in a while(1) loop to toggle a pin at a given time interval/tempo based on a vari...

LMorr.3 by Senior II
  • 1101 Views
  • 6 replies
  • 0 kudos