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

Custom context in callback handlers

Hello,I would like to request a feature to be added to the STM32 HAL.Would it be possible to be able to add a custom user context when registering peripheral callbacks.Example: HAL_StatusTypeDef HAL_SPI_RegisterCallback(SPI_HandleTypeDef *hspi, HAL_S...

Reading a file backwards

Hi there!I'm working on a project wherein I'm trying to play an audio file in reverse. I'm using freeRTOS, fatFS, and a 4-wire SDIO setup, and am doing this little file read dance where I:f_lseek() to the end of a filecalculate how many bytes I want ...

RigolDS4.png
sb_st by Associate III
  • 417 Views
  • 4 replies
  • 0 kudos

ThreadX / AzRtos - garbage collection?

Hello,When a task has completed, does azRtos do any garbage collection?  (ie remove the task and recoup the memory pools)?  - OR - is it something the user has to do (even for system threads)?If it is the latter and I have to take out the garbage, do...

mattcrc_0-1741629799624.png
matt-crc by Senior II
  • 315 Views
  • 2 replies
  • 0 kudos

Read FMC NAND with MCE

On our STM32H7S7I8 we have the MCE interface working on XSPI1 and XSPI2MCE3 should be connected to the FMC interface, we run a NAND flash on this peripheral. We also want to encrypt the data on this device. There is communication with this device usi...

RicSch by Associate
  • 292 Views
  • 1 replies
  • 0 kudos

STM32G0B1 USB-PD

Hi, I am using the STM32G0B1CBTX with STM32CubeMX ver 6.13.0 to produce a USB-PD DRP application. So far, I managed to implement a USB 2.0 Host as this is also needed. When trying to add the USB-PD DRP following ST-s tutorial BUT omitting the inclusi...

DDeba.1 by Associate III
  • 373 Views
  • 5 replies
  • 3 kudos

Resolved! STM32C0 RTC Init timeout

STM32C031G4I am trying to adjust the RTC time in an EXTI interrupt routine (its a button press, it should e.g. add an hour).The RTC is setup using HAL, it succesfully inits with the preset values. After Initialization everything works, the RTC is cou...

janik by Associate
  • 353 Views
  • 1 replies
  • 3 kudos