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

Resolved! Help Understanding BSP_COM for Communication

Code formatting applied - please see here for future reference.Hello everyone,I'm currently working on an STM32 project using the NUCLEO-G431KB board. I've come across the BSP_COM API in the STM32Cube firmware, which seems to be an abstraction layer ...

jin96 by Associate
  • 2403 Views
  • 2 replies
  • 3 kudos

Resolved! Understand SD Card detect pin initialization

Hello,I would like to understand the code to carry out my software integration :  /* Configure SD pin detect */ __SD_DETECT_GPIO_CLK_ENABLE(); __HAL_RCC_PWR_CLK_ENABLE(); And This refers to lines of code that I am lost, for the first line ...

DYann.1 by Senior II
  • 4323 Views
  • 36 replies
  • 7 kudos

STM32 HAL I2C

Good morning, I'm having trouble understanding how to solve a problem.there is already a software developed in keil 4, but we need to change some things but now we will use keil 5 with the hal library, so far ok without problems.my first problem was ...

Switching between USB CAD state machines

Hi, what is the correct way to switch between CAD state machines? For example, between DRP to SNK and vice versa.Motivation: When the battery is bellow the defined SOC, switch from the DRP state machine to the SNK only and stop toggling between SRC a...

kumen by Associate II
  • 1050 Views
  • 4 replies
  • 0 kudos

STM32 G4 HAL i2c not clearing interrupts

**Problem:**- When the I2C is enabled, the part can hit the WWDG.- It looks like the pointer to the function `XferISR` is getting set to NULL somehow.  - When this happens, the interrupts are not cleared, and it continually fires the interrupt becaus...

photon by Associate
  • 1427 Views
  • 3 replies
  • 0 kudos