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

SPI RX->DMA stops running when debugger is allowed to resume

I'm trying to run SPI2 (Master Receive Only) such that it continuously DMAs data from the slave. The problem is, it only works when I step over the HAL_SPI_Receive_DMA line... at which point I see SCLK, and it will run forever, until I "resume" th...

EZamo.1 by Associate III
  • 1333 Views
  • 5 replies
  • 0 kudos

Wakeup from sleep HAL_TIM_PeriodElapsedCallback interupt on a STM32L031 commenting out HAL_PWR_EnableSleepOnExit (); and HAL_SuspendTick(); the LED flashes

Im trying to reduce power by putting the a STM32l031 to sleep between timer interupts. It goes to sleep but never wakes upvoid HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef * htim) {  if (htim -> Instance == TIM21) {  Strobe++;  if (Strobe==8352){ ...

PGood.1 by Associate II
  • 348 Views
  • 0 replies
  • 0 kudos

Enabling LSE clock on PA8 from HEX code?

I am unable to communicate with the MCU via UART (115200 bit/s). It looks like the program inside MCU is not running. I think the problem can be probably in not running LSE 32.768kHz crystal oscillator.Is it possible to enable LSE clock on PA8 if I h...

DRich.4 by Associate II
  • 2318 Views
  • 12 replies
  • 0 kudos

I2S data gets corrupted

Hi there,I am trying to do some digital signal processing on a STM32G031F6 by interfacing an SPH0645 MEMS microphone via I²S. I'm running into strange issues however, that I haven't been able to solve in the last few days. I am switching to an analog...

NBees.1 by Associate II
  • 3191 Views
  • 18 replies
  • 2 kudos

Resolved! Timer and interrupt triggered by one I/O line?

Hi all,is it possible to use the same GPIO-pin as Timer external trigger and falling edge external interrupt.I'd like to create an application in which a rising edge on a GPIO starts a timer that sets an output for, say 2ms. After this time, another ...

b.a. by Associate III
  • 1272 Views
  • 2 replies
  • 0 kudos

Resolved! STM32F051r8t6 SPI initialization issue

Hello.I'm trying to use SPI interface in STM32F051r8t6 micro on my STM32F0 discovery board. I got it to send data, but I set data lenght to 8bit, it is sending double that (first 8 is my data, but second 8 bit is always 0x00). When I set it to 4-bit,...

0693W000005A1GZQA0.jpg
fifi_22 by Associate III
  • 659 Views
  • 1 replies
  • 0 kudos