STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

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
  • 240 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
  • 1628 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
  • 2261 Views
  • 18 replies
  • 2 kudos

Resolved! STM32F4 DFP HAL Drivers Compatibility with ARM Compiler 6

Just started to migrate to the ARM compiler 6 and I noticed __weak is incompatible language extension in this version and it needs to be written __attribute__((weak)).In STM32F4 HAL Drivers and almost all of the STM32 MCUs, there are lots of function...

MKari.1 by Associate II
  • 1053 Views
  • 4 replies
  • 0 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
  • 883 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
  • 497 Views
  • 1 replies
  • 0 kudos

SysClock to 216MHz on STM32F7 using PLL not working

Hi, I am trying to set SysClock to 216MHz using stm32f769xx.hI have no access to MCO pins, so for testing I am trying to blink a led every second. ARR and PSC values to achieve it will confirm if I am to desired SysClock frecuency (Blink led using ti...

RCres.1 by Associate III
  • 292 Views
  • 0 replies
  • 0 kudos