Skip to main content
Graduate
January 29, 2024
Solved

Integer types u_int32_t and uint32_t

  • January 29, 2024
  • 1 reply
  • 3894 views

Hello. Why STM32CubeIDE suggesting me to autocomplete u (unsigned type) as a u_int32_t if it doesn't built? However uint32_t works well. What is the difference using u_intXX_t and uintXX_t?

    This topic has been closed for replies.
    Best answer by Sarra.S

    Hello @wickeLine228 

    The types u_intXX_t and uintXX_t are both used to represent unsigned integers of a specific size. However, uintXX_t is from the C standard library and u_intXX_t is not part of the standard C library, and its definition varies depending on the platform and compiler being used.

    The STM32CubeIDE is based on the C standard library, which is why uint32_t works well. The u_int32_t might not be recognized because it's not included in the standard library used by STM32CubeIDE.

    1 reply

    Sarra.SAnswer
    ST Employee
    January 29, 2024

    Hello @wickeLine228 

    The types u_intXX_t and uintXX_t are both used to represent unsigned integers of a specific size. However, uintXX_t is from the C standard library and u_intXX_t is not part of the standard C library, and its definition varies depending on the platform and compiler being used.

    The STM32CubeIDE is based on the C standard library, which is why uint32_t works well. The u_int32_t might not be recognized because it's not included in the standard library used by STM32CubeIDE.