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

STM32G071 - Problem with rand() and random() functions always returning 0 in a FreeRTOS thread but OK in main().

I have an STM32G071 running FreeRTOS CMSIS v2 compiled with STM32CubeIDE. In one of the threads I want to generate a pseudo-random number. (I don't need anything sophisticated and the STM32G071 doesn't have an RNG anyway; pseudo random is absolutely ...

SSton.1 by Associate III
  • 4553 Views
  • 6 replies
  • 3 kudos

'F446 OTG_HS hangs on Core Soft Reset

On a 'F446 running out of FLASH at 168MHz, an already field-proven code using OTG_HS with FS PHY started to fail intermettently after being compiled by a newer version of gcc (due to more aggressive optimization of course).The code hangs on        wh...

Resolved! How to properly use HAL I2C functions

 Hey,I'm working with TMP175AQDGKRQ1 (temperature sensor) which communicates over I2C.I've managed to read the temperature register by doing this static void Read_Temperature(unsigned char *buffer[2]) { HAL_I2C_Master_Transmit(&hi2c1, /*0x4B<<1*/TE...

0693W000001sAIqQAM.png
RLosc.1 by Associate II
  • 4068 Views
  • 3 replies
  • 0 kudos

USB Audio Class losing 50% of my data

Hi, I am trying to get a robust isochronous transfer of audio from my STM32F072CB using the audio device class. My code is based on the code generated by STM32CubeMX for a speaker but I have changed the descriptor in order to make it an audio input. ...

0693W000001sASMQA2.png

How to get peripheral clock programmatically?

Hello,I have a generic function for the timer configuration. The time base address is an input parameter to this function. I'm looking for a way to get the timer clock so that I can set the timer prescaler. How can I do that with HAL?I guess I need t...

GregB by Associate II
  • 1322 Views
  • 3 replies
  • 0 kudos

Boot app code from external memory OSPI/QSPI ???

Hello!I'am playing with the STM32H7B3-DK and I have successfully bring up the board and run a custom gui:The GUI assets are loaded in the external OSPI and the dual framebuffer is placed in the the external SDRAM.Now I'am interested in loading also t...

PLago.2 by Associate II
  • 1050 Views
  • 3 replies
  • 0 kudos