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

I'm writing a bootloader for the STM32L152. I'm trying to understand how I can switch from a code image in Bank 1 to an image in Bank 2 from the bootloader.

Each code image will have an associated bootloader. If the bootloader in the current image runs and decides to change to the image in the other bank (corrupt image, new update, etc) I want to be able to do a reboot and change to the other image. I'd ...

LThal by Associate III
  • 446 Views
  • 2 replies
  • 0 kudos

STM32F769 Discovery Example: ,,Audio_playback_and_record,, SAI Clock for 16kHz with 2MHz works but 48kHz and 3MHz works not

Hello together,I want to record a microphone with the Audio_back_and_record that I can operate at 48kHz and 3MHz.Only the variant 16kHz with 2MHz or 16kHz with 3MHz works, but unfortunately not.According to the Application Note AN5027 different clock...

DWege by Associate
  • 613 Views
  • 0 replies
  • 0 kudos

USB host, mass storage class - how to tell when memory stick has completed writes and is safe to power down.

I’m using the STM32L476 discovery kit to test an application where a battery-powered product powers up a USB memory stick, connects to it, writes some data, and then shuts the stick down again, removing power. I've used the STM32 Cube to generate the...

JGerb by Associate III
  • 656 Views
  • 1 replies
  • 0 kudos

Problem with VPC USB FS and STM32F103VET6 device.

Hello Community,I purchased a Cortex-M3 STM32F103VET6 board and trying to implement USB FS on it. I'm using CubeMX to generate code, the version is up to date and i'm using the latest firmware libraries (FW_F1_V1.6.1). After compile USB device doesn'...

How to "return" HAL_UART_Receive buffer?

I'm using the HAL_UART_Receive function for receiving strings and I need to check if the receiving strings matches with the strings that I want to receive.First I want to create the char for the string in heap:char *response = (char *)malloc(RN2483_M...

Tvan.7 by Associate
  • 1025 Views
  • 3 replies
  • 0 kudos

FreeRTOS - Adding MPU support for tasks

Hi..I am trying to test MPU support in FreeRTOS on STM32L476G-EVAL board.In addition to common files like tasks.c, queue.c etc., I added below files for MPU support to my project.1.) port.c (for ARM_CM4_MPU)2.) mpu_wrappers.c3) event_groups.cAnd ...

AChau.5 by Associate
  • 801 Views
  • 1 replies
  • 0 kudos

STM32Cube_FW_H7_V1.3.0: HAL_ADC_ConfigChannel refuses to configure an internal path on ADC3 if ADC1 or ADC2 is already enabled

Lines 2558~ of Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c does this.However, it's not certain if ADC3 belongs to the same group as ADC1 or ADC2. If not, the use of ADC_ANY_OTHER_ENABLED is too restrictive, as we are working here only for in...