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

TIM3-> CCR1 is not capturing TIM3->CNT value in input capture function .I am trying to interface HC-sr04 Ultrasonic sensor to STM32F401. I am giving input to TRIG pin with 10 micro second ON and Need to Measure Pulse from ECHO pin of the Sensor.

#include<NEW.h>void Ultra_setting();void delay();int timeStamp = 0;int main(){  //GPIO A configuration Ultra_setting(); Gpio_Init();  //input capture mode  RCC->APB1ENR |= 2;   //ENABLE TIMER 3  TIM3->PSC = 16;    //divide by 16  TIM3->CCMR1 |= (0b01...

Nchun.1 by Senior
  • 1642 Views
  • 7 replies
  • 0 kudos

Resolved! Debugging STM32F769i-disco using openocd and gdb in Linux

Hello ST,I'm trying to launch a debug session for STM32f769i-disco using openocd and gdb in linux. I've install openocd(0.10.0), gdb and gdb-multiarch tools in linux.This is the below log after launching openocd with my board's config file.openocd -f...

Resolved! How to configure a 64 bit quadrature encoder interface

I'm currently using TIM2 on an STM32F373 as a 32bit quadrature encoder interface, however I need to extend this to 64 bits. Can I cascade a second 32bit counter (e.g. TIM5) as a slave whilst still maintaining the ability to count up & down ? Thanks

RParf.1 by Associate II
  • 1534 Views
  • 7 replies
  • 0 kudos

Resolved! Right edge aligned PWM

I've edited this post to make it more useful to others.We are well into development of a board at work using an STM32F072RBT6 MCU. I just wrote a quick from scratch test using a NUCLEO-F072RB board to verify things. I'm not sure of the exact problem,...

SPetr.6 by Associate III
  • 1698 Views
  • 6 replies
  • 0 kudos

MCU starts code if I do a hardware reset!

Hello,I'm working with STM32F427VIT6 microcontroller. BOOT0 is connected to GND through 10K resistor. The NRST state is high.My problem is when I power up the board, the microcontroller code execution seems to not start. The execution only starts if ...

BS.2 by Associate
  • 1704 Views
  • 3 replies
  • 0 kudos

STM32G474 dual bank feature seems not working.

My application is running in Bank1 and I program new firmware binary file to bank2 via USB and toggle the bank(set BFB2), it does not start . When I check the binary file generated by cubeIDE and the binary file written to bank2(using cubeprogrammer)...

HYe_i.1 by Associate
  • 725 Views
  • 1 replies
  • 0 kudos