Recent

Author Topic: Read Unique Number Register from STm32F103  (Read 1416 times)

coradi

  • Full Member
  • ***
  • Posts: 106
Read Unique Number Register from STm32F103
« on: October 14, 2021, 11:28:41 am »
Hallo,
how can I read the Register with the unique Serial Number from STM32F103?
Amstrad Schneider CPC 6128
Wind XP / 7 / 10

ccrause

  • Hero Member
  • *****
  • Posts: 593
Re: Read Unique Number Register from STm32F103
« Reply #1 on: October 14, 2021, 08:47:03 pm »
I couldn't see a definition for this register, but if you know the location then use absolute to map a variable to that address:
Code: [Select]
type
  TUID = record
    ID1, ID2, ID3: uint32;
  end;

var
  UID: TUID absolute $1FF80050;
Now just access UUID.ID1 etc. to get the different 32 bit values.

 

TinyPortal © 2005-2018