AnsweredAssumed Answered

How to report issues on LL HAL driver for STM32L0 (Incorrect unique device ID flash location)

Question asked by Martin Jørgensen on Jan 19, 2017
Latest reply on Feb 23, 2018 by Imen D

I need to read the unique device ID from a STM32L0.


The Low Level hal driver source (stm32l0xx_ll_utils.h, V1.7.0, 31-May-2016) uses:


__STATIC_INLINE uint32_t LL_GetUID_Word0(void)
return (uint32_t)(READ_REG(*((uint32_t *)UID_BASE_ADDRESS)));

__STATIC_INLINE uint32_t LL_GetUID_Word1(void)
return (uint32_t)(READ_REG(*((uint32_t *)(UID_BASE_ADDRESS + 4U))));

__STATIC_INLINE uint32_t LL_GetUID_Word2(void)
return (uint32_t)(READ_REG(*((uint32_t *)(UID_BASE_ADDRESS + 8U))));


The reference manual says:

Base address: 0x1FF8 0050

Address offset: 0x00 => Bits 31:0

Address offset: 0x04 => Bits 63:32

Address offset: 0x14 => Bits 95:64