STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

How to use SPI with DMA as slave

Hello, I'm trying to understand how the HAL_SPI_TransmitReceive_DMA() function works when my mcu is in slave configuration.If I want to transmit and receive data multiple times do I have to call the HAL_SPI_TransmitReceive_DMA() after each transfer o...

SPI doesn't stop clock after transmission completed.

Hi!Have a problem with SPI.SPI configured as SSI master RX only, and for the first transmission SPI generates additional clock cycle for one more word. What can be cause of such behavior? But it's work fine with less frequency (125 Khz)Here is initia...

Roman by Associate II
  • 608 Views
  • 3 replies
  • 0 kudos

STM32G474 ADC offset

There is only 4 offset registers OFR1...OFR4, does it mean I can set offset for 4 channels only? Or they are dedicated to injected channels?

Tx to Rx UART DMA loopback

Hello,The Tx and Rx pins of UART 4 in my code are shorted. I want to send an incrementing array from the Tx pin and receive it back from the Rx pin.For this I wrote a for loop that increments every element of the array. The for loop is run from the c...

skon.1 by Senior
  • 875 Views
  • 3 replies
  • 0 kudos

Resolved! Sending data via I2C doesnt work properly

Hi,I want to controll a ST7032 Display Modul via I2C with a STM32G071G8 MCU. Unfortunately I can't manage to send data bytes to the Display. For sending data I use the HAL function HAL_I2C_Master_Transmit() as followed: (for testing)HAL_I2C_Master_Tr...

0693W000004GpfxQAC.png
HReet by Associate
  • 467 Views
  • 2 replies
  • 0 kudos

STLINKV3 VCP1 & VCP2 BREAK & RTS command

Dear All,I try to use the 2 VCP on the STLinkV3 and I have some problem with standard command...I cannot Send a BREAK command on the TX line I cannot send RST ON/OFF command on the RST line of the VCP2When I use this command nothing append... Any ide...

FDarr.1 by Associate II
  • 347 Views
  • 0 replies
  • 0 kudos

Resolved! How to trigger ADC conversion via timer correctly?

Dear Community,for some time I've tried to set up the hardware of a STM32F429ZI to periodically trigger a discontinuous ADC conversion with 2 channels.I'm using TIM1 in PWM mode to generate CC interrupts with TIM CH3. The timer is running in center m...

CBrom.1 by Associate II
  • 2804 Views
  • 4 replies
  • 0 kudos

STM32H745 TIMER peripheral to memory DMA

Hi,I'm trying to get a timer with external clock (ETR2) to trigger a DMA transfer from GPIO to memory on a STM32H745 with no luck.I'm using cubeMX to generate the code below.The timer seems working. TIM2_IRQHandler is triggered periodically.However n...

Mvan .31 by Associate II
  • 525 Views
  • 2 replies
  • 0 kudos