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

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
  • 26 Views
  • 0 replies
  • 0 kudos

INA226

Hi there!I start to work with this sensor and i want use this functionHAL_I2C_Mem_Write_IT(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress,uint16_t MemAddSize, uint8_t *pData, uint16_t Size)so the pointer address register of the sen...

SGian.1 by Senior
  • 29 Views
  • 1 replies
  • 0 kudos

Thread safety of code generated by Cube

Hello,I'm wondering if Cube's generated code for is thread safe. In particular, whether malloc can be safely used in a multi-threaded FreeRTOS setup.The broken malloc behavior was first described by Dave Nadler in 2019 here. He has also written about...

unturned3 by Associate II
  • 3126 Views
  • 8 replies
  • 2 kudos

USB Printer with STM32

How would I go about implementing a USB host for a usb printer. I would like to send things through my STM32 to be printed. I’ve seen adaptations or some work done on the USB printer class as a device but I am unsure how I would do this as a host? An...

Resolved! STM32Cubeide 2.0

Hi there!i start one of my new project with STM32cubeide 2.0. First i start with configure mu MCU in STM32CUBEMX in this casa STM32G031K8T6 afther i configurate all pin i create a poject . So afther i import my project in STM32CubeIde 2.0 and i build...

SGian.1 by Senior
  • 84 Views
  • 4 replies
  • 0 kudos