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

Resolved! whats wrong in below code

uint16_t val[200]; unsigned char data[20]; uint32_t AVG_val[10]; uint16_t val_2=0; unsigned char count=0; double rms=0.0; uint32_t square = 0; double mean = 0; double root=0.0; int arr[]={15,78,59,85,56}; int n=100; int main(void) { HAL_Init(); S...

ykn by Senior
  • 700 Views
  • 4 replies
  • 0 kudos

STM32F4 Audio acquisition slowing tasks

I am using STM32F401 for audio acquisition through I2S interface and also interfaced an IMU sensor with the MCU through I2C. I am using the CCA02M2 library provided by STM for audio acquisition and a separate task for reading IMU data. When I run the...

PA.3 by Associate
  • 369 Views
  • 0 replies
  • 0 kudos

Button interrupt with time period

Hi,I want to implement button interrupt with time period to send the mcu to Dee-sleep ,and wake up. For example; When I press button for 5 sec, MCU will go to sleep, when I press the button second time for 5 sec MCU will wakes up. but I don't know ...

TPiri.1 by Associate II
  • 1368 Views
  • 6 replies
  • 0 kudos

How to restart counter of a timer

Hello All,I'm using a STM32H743, and I would like on runtime from a GPIO IT, restart to zero the counter period of a timer, is it possible ?How to do that ? I havn't found API for that.Thanks.

MGuil.1 by Associate II
  • 698 Views
  • 2 replies
  • 0 kudos

Sent int32_t with Hal_UART

Hi All,  I would like to send int32_t decimal number via USART, but with HAL_Uart_Transmit we can send uint_8. Do you have any idea how I can do that?Thanks.

Nmo.1 by Associate III
  • 1654 Views
  • 3 replies
  • 0 kudos

stm32f730 , Quad SPI ,how to configure the data shift out on the rising edge of clk and samle one the falling edge

stm32f730 , Quad SPI ,i used to communicate to a device ,need 3bits data width. but how to configure the data shift out on the rising edge of clk and sample the falling edge . like the Stand SPI , we can set CPOL to '0' or '1'?if not to do , pls ...

zhong.1 by Associate II
  • 1326 Views
  • 7 replies
  • 1 kudos