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

what to include in header and source files

I generated project with CubeIDE for Nucleo F411RE board with defaults.Now I want to create my own function void LED_blink(int blink_num);So, I created ledfunc.h and ledfunc.c files.This is my ledfunc.h file: #ifndef INC_LEDFUNC_H_ #define INC_LEDFUN...

Roman_E by Associate II
  • 41 Views
  • 4 replies
  • 1 kudos

Memory barrier instructions

Hi!I have the following code:uint32_t currentTicks; do { currentTicks = handle->controlData.ticks; // controlData.ticks is volatile // copy a lot of data from handle->controlData ... } while(currentTicks != handle->controlData.ticks);hand...

Cboe by Associate
  • 41 Views
  • 1 replies
  • 0 kudos

USB_WritePacket stuck in infinite loop

  Hello ST Team, I developed a custom USB DFU HOST class on an STM32F446ZE. I soldered a USB-C cable directly to the D+/D-, 5V and GND pins. The Problem: The stack works correctly for transfers up to 128 bytes. However, when I set phost->Control.setu...

Program STM32L471 with HAL_FLASH_Program failed

I am migrating from STM32L431 to STM32L471. After migration, the function relating to internal flash writing does not work any more. The problem is when I programmed internal flash with HAL_FLASH_Program(FLASH_TYPEPROGRAM_DOUBLEWORD, address, data), ...

Huiqi by Associate II
  • 111 Views
  • 7 replies
  • 3 kudos

Resolved! Receiving ADF1 data via GPDMA

Hello,I am trying to get the audio data from ADF1. Therefore I use the GPDMA as shown in this example: https://github.com/STMicroelectronics/STM32CubeU5/tree/main/Projects/STM32U575I-EV/Examples/MDF/ADF_AudioRecorder. I am developing on a B-U585I-IOT...

KoCT by Associate II
  • 52 Views
  • 1 replies
  • 0 kudos