STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! Set timer update event at a desired T seconds frequency

Hello, I want to generate an interrupt using the timer update event every T seconds at a given MCU frequency F using LL library and a basic timer with STM32L071CB.Lets say for example that:T = 5 sSystem clock frequency F = 32 MHzTimer TIM6 It look...

migmel by Senior
  • 2233 Views
  • 4 replies
  • 0 kudos

HAL_Delay counter wrap problem. in HAL_Delay current timer count is read first (tickstart = HAL_GetTick()) and the function waits till (while((HAL_GetTick() - tickstart) < wait)) the difference is equal or greater than given value. What happens if

current tick count is say 0x0fffffffff (just 15 short of an over flow) and if my delay (wait) is say 20. Running count will rollover after 15 ticks and becomes 0. The new comparison will 0-0x0fffffff. Will the delay still work? I guess not. Your valu...

how to count cpu cycles on M0+ chips?

Hi everyone,I am preparing a course for university and I plan to use G071RB NUCLEO board. I wish to show floating point calculation without FPU is pretty slow, so is there a way to show cpu cycle count feature from debug?Thank you!

zrs5532 by Associate II
  • 588 Views
  • 3 replies
  • 0 kudos

Resolved! STM32F4 chip select problem

Hello,I am having problems with SPI connectivity. My problem seems to be the chip select pin that is controlled using GPIO HAL libraries. Chip select is pulled low for way longer than it is supposed to and therefore I cannot read the sent data proper...

0693W00000KbZKKQA3.png
plate30 by Associate II
  • 2364 Views
  • 6 replies
  • 0 kudos

Question about power control on STM32L476 Nucleo-64

Really new to programming these boards, and part of my project is to turn on/off these DC fans . I don't want to add any hardware to incorporate a switch, and was wondering if there was a way to program one of the power pins to be enabled or disabled...

EAmbr.1 by Associate
  • 397 Views
  • 2 replies
  • 0 kudos

Resolved! How to use DSP in STM32G070?

I have used DSP in STM32F411 successfully,but when i want to use DSP in STM32G070 , i find the DSP files are some different,such as G070's DSP files : ./Sourse/. have a Cmakelists.txt. i dont know how to use that txt file, so i just add DSP as usual...

0693W00000KbYkqQAF.png
noob by Associate II
  • 969 Views
  • 2 replies
  • 0 kudos