Skip to content

Latest commit

 

History

History

src

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

When we supported only STM32F4 the contents of this directory were relatively clear. However, adding support for STM32U5 under STM32Cube has muddied the waters somewhat, especially since the default RTOS integration provided by ST with the STM32U5Cube FW is now ThreadX rather than FreeRTOS. You will find details on how to choose between the two platforms and, in the STM32U5 case, between the two RTOSes, in the directories under mcu.

Relevance

These files are relevant to both STM32F4 and STM32U5:

These files are relevant only to STM32F4:

These files are relevant only to STM32U5 (for which U_PORT_STM32_PURE_CMSIS must be defined):

  • system_stm32u5xx.c,
  • startup_stm32u575zitxq.S,
  • stm32u5xx_hal_conf.h,
  • stm32u5xx_hal_msp.c,
  • tx_initialize_low_level.S, note: provides ThreadX initialisation, may be ignored if U_PORT_STM32_CMSIS_ON_FREERTOS is defined,
  • tx_user.h, note: provides ThreadX compile-time configuration, may be ignored if U_PORT_STM32_CMSIS_ON_FREERTOS is defined,
  • u_port_clib.c, note: maps malloc() and free() to ThreadX memory pools, may be ignored if U_PORT_STM32_CMSIS_ON_FREERTOS is defined,
  • sysmem.c, note: provides an implementation of _sbrk() for ThreadX memory pools, may be ignored if U_PORT_STM32_CMSIS_ON_FREERTOS is defined,
  • u_port_os_pure_cmsis.c, note: a version of u_port_os.c that adapts only to the CMSIS version 2 API, enabling either ThreadX or FreeRTOS to be used.
  • i2c_timing_utility.c, note: this file is provided by ST with the I2C examples for STM32U5 as an implementation of the relatively complex calculation required to set the timing register correctly for a given I2C clock rate in Hertz (the I2C HW in the STM32U5 series MCUs is significantly different to that of the STM32F4 series MCUs); it effectively forms part of u_port_i2c.c for STM32U5.