2014-04-10 03:59 AM
Hello!
I'm trying to read STM32L162VD register U_ID (Unique device ID registers) ... If I refer to Reference manual, page 812, chapter 30.2 Unique device ID registers; base address is 0x1FF8 0050, for next scope of bytes is address offset 0x04, but for next (last) bytes is offset 0x14, but it's value is equal to zero...uidLoc: c0f83f07uidLoc+4: e6c71938uidLoc+14: 0Now I'm wondering if it is possible that this is an address offset error in reference manual? Because if I read bytes with address offset 0x08 i get those values, which makes more sense then above:uidLoc: c0f83f07uidLoc+4: e6c71938uidLoc+8: 4efcb103Best regards and thanks for any useful info...2014-04-10 06:30 AM
Hi
I think you right, the final offset should be +8 and NOT +14 The project I am on uses a STM32F405 and we use +82014-04-10 06:44 AM
The project I am on uses a STM32F405 and we use +8
Yes, but the L15x parts are different, and the Unique# has a hole in it.[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Unique%20Device%20ID%20not%20unique%21&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=249]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FUnique%20Device%20ID%20not%20unique!&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=249 0x1FF80050,0x1FF80054,0x1FF80064 low/medium devices 0x1FF800D0,0x1FF800D4,0x1FF800E4 medium+/high devices I don't have any 162 devices.2014-04-10 06:55 AM
Try printing out these values, perhaps we can identify what's going on.
printf(''%04X\n'', *((uint16_t *)0x1FF8004C) ); // Cat1 and 2 printf(''%04X\n'', *((uint16_t *)0x1FF800CC) ); // Cat3,4 and 52014-04-10 11:44 PM
Oh, thank you clive1
i'm such a dumb, i had an old reference manual from our local svn :\ there was base address just for Cat1 and Cat2.Thank you once again