Double (or float) division does not work
Hi,on STM32H7 I want to divide 25600/1000 - I get always result = 25. Why? What I do wrong?double freq; int odr=25600; freq = (double) (odr)/1000;Thank you
Hi,on STM32H7 I want to divide 25600/1000 - I get always result = 25. Why? What I do wrong?double freq; int odr=25600; freq = (double) (odr)/1000;Thank you
I am trying to simply turn PA0 HI on an STM32F030F4P6 using Cube IDE.No matter what I do, if I try to write to any GPIO registers (including using the auto generated Inits), I get a Hard Fault. Nothing solves it :( Tried debugging it, no matter what...
I am designing a board and would like to use the 32 bit timer (TIM2) in encoder mode. Per the block diagram in RM0444:the inputs to the encoder interface are T1FP1 and TI2FP2, which originate from TIM2_CH1 and TIM2_CH2 (highlighted in yellow). It a...
I am working on the STM32L4S9AII6 MCU. I have timer 6 configured in 1 shot count up mode. Interrupt is enabled. How do I stop a one-shot timer that is already running? I've tried a bunch of things but no matter what I do I can't get the timer to work...
Hi all, hope all is well. I've been trying to learn the STM32 by creating a project for myself, and I am stuck on the bluetooth portion of things. I have watched videos, read documentation, etc, and I just don't know where I'm going wrong. I've been ...
I set up my spi5 as follows hspi5.Init.Mode = SPI_MODE_MASTER; hspi5.Init.Direction = SPI_DIRECTION_2LINES; hspi5.Init.DataSize = SPI_DATASIZE_8BIT; hspi5.Init.CLKPolarity = SPI_POLARITY_LOW; hspi5.Init.CLKPhase = SPI_PHASE_2EDGE; hspi5.Ini...
Hi!I am trying to store a real value in the flash memory of my STM32 but i am struggling to write it. Has anyone already done this in the same STM32L041x6 processor?If so , how can i do it? also, is it possible to read it back?Thanks in advance!!
I checked WDG. The system is working properly. If there is no reset, it resets when I disable the WDG signal. In case of deadlock, I pull to GND myself, but it still does not reset. The only solution is to cut off all energy.
now we are registering data for ST33KTPMS132BKD7 into our system, Could you please provide the datasheet of this part to me, thanks.