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

STM32 Nucleo-F413ZH: Proper way to start a second PWM (delayed and internal trigger start [both trigger or gated] slaved mode) , on another timer.

General objective: Generate 2 PWM's on Timer 3 and Timer 4 respectively at 50% duty cycle, both with period of 2 seconds and phase shift of 1second between them (Timer4 will start 1 sec later).Because I want it to be precise, I am not considering usi...

0693W00000FCmCnQAL.png 0693W00000FCmDHQA1.png
EToh.1 by Associate II
  • 2448 Views
  • 6 replies
  • 0 kudos

double type calculation

Hello.At the next double type calculation,double a = 0.7; char b = 12; double c;   c = a * b;c is saved to 8.39999 in the register But 0.7*12 is 8.4How can I save 8.4 to the 'c' register?Thanks.

Kim.Andy by Associate III
  • 489 Views
  • 2 replies
  • 0 kudos

Resolved! My STM32L051K8T6 gets stuck in an infinite loop in HAL_Delay(1000); but I know its a hardware problem, not a software problem. Where should I focus my hardware debugging on?

I have used this same chip on a previous project and managed to toggle an LED on and off using HAL_Delay(1000); function. I copied the same code across to my new project board, uploaded it successfully, toggled the LED on successfully but when I step...

0693W00000FCj26QAD.png 0693W00000FCj2GQAT.png
ARyan.4 by Associate II
  • 1307 Views
  • 5 replies
  • 0 kudos

Resolved! stm32f4 external interrupt problem

Hello,I'm using an stm32f411ce with an lsm6ds3 IMU and I want to trigger a read from the IMU with an EXTI. I've set it all in the code below and activated the interrupt on the IMU. the interrupt is set in PR register but handler is never called.Thank...

EPora.1 by Associate II
  • 2616 Views
  • 17 replies
  • 0 kudos

Resolved! RTC Alarm Register Corruption

We have been using an STM32L476 in a product that schedules periodic wake times. Recently we have discovered a bug where the unit will go to sleep and never wake back up. What we have noticed is after generating another interrupt to wake the unit up ...

STM32L431RCT reads out Zero Value from ADC after EMC/ESD Testing. After a manually disable and enabling adc cycle everything is fine again.

Do you have any ideas what's going on with STM32L431RCT. After ESD Testing ADC of STM32L431RCT reads back 0 Values at all Input Channels. A manually disable and enabling cycle in debugging mode helps. ADC is reading values then correct again.We also ...

MGehr.3 by Associate II
  • 5849 Views
  • 11 replies
  • 0 kudos

Resolved! STM32F405RG HAL_I2C_Mem_Read_DMA stopped after reading 2 bytes.

I was trying to read the 24AA64FT EEPROM using the I2C DMA methods. But the I2C read will break after reading 2 bytes for no reason, and both SDA and SCL stay low. As you can see in the picture, the reading starts with writing 0x50 (0xA0 >> 1) to the...

0693W00000FCZtZQAX.png 0693W00000FCZtyQAH.png
GChen.5 by Associate II
  • 1932 Views
  • 4 replies
  • 1 kudos

Resolved! How does an uninitialized local pointer work in STM32?

I have the following bug in my project and cannot figure out why.In one function I was using an uninitialized pointer variable to receive data from another function. For some reason it works which I think shouldn't. The code is like this:funcA{ m...

zzzzz by Senior
  • 912 Views
  • 2 replies
  • 0 kudos