STM32 MCUs Embedded software

Ask questions and find answers on STM32Cube packages, including HAL, LL and middleware, and expansion software.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Sleep mode with FreeRTOS enabled

I want to be able to make the STM32G474 go to sleep when certain conditions are met.I've created a small project to test the feature. The `app-freertos.c` file is like this:#include "FreeRTOS.h" #include "task.h" #include "main.h" #include "cmsis_os....

xgon by Associate
  • 6775 Views
  • 7 replies
  • 0 kudos

Resolved! HOW TO READ UART FROM PZEM 004T

I need help with using pzem 004t in stm32f405 with uart communication. i have check this source willyvamp/STM32F103C8T6-PZEM004T-DHT11: HAL STM32 (github.com) but still dont get the data form uart. please help

BAl K.1 by Associate III
  • 3445 Views
  • 6 replies
  • 0 kudos

usart DMA interrupt faster than buffer update

Hi All,I use DMA IDLE Idle line and circular mode to receive usart buffer, and process data in rtos,but when I get an Idle event, sometimes RTOS read buffer will get some empty data, but wait a little bit times, the buffer will be updated, so when I ...

0693W00000WLAjYQAX.png 0693W00000WLAnXQAX.png
CTing.1 by Associate II
  • 527 Views
  • 0 replies
  • 0 kudos

usart interrupts vs freertos polling

My application has a low priority usart receive function - meaning that if characters are delayed it's no big deal. I've been using interrupts with a callback receiving one character at at time with a read always outstanding. I process flags and b...

Resolved! Is it possible to setup a USB-C only power connection (fixed CC resistors) while having the USBPD lib active?

I have set up the USBPD lib on my system to manage USB power delivery messages and set up power contracts in both the source and sink directions. Now that this seems to work well, I also want the system to work with a USB-C only power source (non-PD)...

Lvan .4 by Associate II
  • 1246 Views
  • 2 replies
  • 0 kudos

STM32 fail to receive data with DMA under RTOS

Hi guys,On STM32H7, try to receive data with UART in DMA normal mode under FreeRTOS, Tx works OK but receive nothing with keli5 (CubeMX setting as reference )I use HAL library,also tried LL library but not working.Already checked DMA is initialized b...

Rchan.1 by Associate
  • 708 Views
  • 2 replies
  • 0 kudos

Clock configuration for STM32L4R9 with USB-FS - SDMMC

Hi,I would ask the community a suggestion for clock configuration.I should use the USB ans Mass Storage Class using the SD card by SDMMC interface as memory. This function is used for 5 to 10% of my device usage, so I would decrease the SYSCLK for po...

0693W00000QLc6mQAD.png
lukin by Associate III
  • 605 Views
  • 1 replies
  • 0 kudos