cancel
Showing results for 
Search instead for 
Did you mean: 

Get UID and use it in BLE Local Name

kcire L.
Associate III

Hi,

I am using the STM32WB55 and would like to use part of the chip's unique ID as part of the local name in my BLE application.

I was hoping someone could easily show me how I could do this, or at a minimum, get the UID?

Thanks for any help.

4 REPLIES 4
TDK
Guru

The reference manual lists the location of the 96-bit UID and the UID64, which is probably what you want.

0693W00000HpfgcQAB.png

If you feel a post has answered your question, please click "Accept as Solution".

How would I access this?

uint32_t uid64_1 = *((uint32_t *) 0x1FFF7580);
uint32_t uid64_2 = *((uint32_t *) 0x1FFF7584);

If you feel a post has answered your question, please click "Accept as Solution".

You might want something like they're doing here:

https://github.com/STMicroelectronics/STM32CubeWB/blob/11042898d71249ed9c698355fd7b7812b741a161/Projects/STM32WB5MM-DK/Applications/BLE/BLE_Mesh_Model_Sensor/STM32_WPAN/app/svcctl_conf.c

I'm unfamiliar with the details of BLE.

If you feel a post has answered your question, please click "Accept as Solution".