8781 views|16 replies

10

Posts

0

Resources
The OP
 

I need help with the BlueNRG-2 unique device serial number. All the numbers are FF. [Copy link]

 
 Please advise: As the title says, the Unique device serial number of BlueNRG-2 is all FF when read out. Is the unique code here written by myself?

This post is from ST - Low Power RF

Latest reply

Which compiler did you use? In IAR, just open memory under the View menu.   Details Published on 2017-12-22 17:30
 
 

9720

Posts

24

Resources
2
 
The unique id is generally said to be globally unique, so you don't need to write it yourself. Otherwise, what difference does it make if you have it or not?
This post is from ST - Low Power RF

Comments

Which address are you reading? Or post the code to see it. Unique device serial number The BlueNRG-2 device has a unique six-byte serial number stored at address 0x100007F4: it is stored as two words (8 bytes) at addr  Details Published on 2017-12-15 01:20
 
 
 

9720

Posts

24

Resources
3
 
littleshrimp posted on 2017-12-15 01:19 Usually, unique ids are claimed to be globally unique, so you don't need to write them yourself. Otherwise, what difference does it make whether you have it or not?
Which address did you read? Or post the code to see it. Unique device serial number The BlueNRG-2 device has a unique six-byte serial number stored at address 0x100007F4: it is stored as two words (8 bytes) at addresses 0x100007F4 and 0x100007F8 with unique serial number padded with 0xAA55.
This post is from ST - Low Power RF
 
 
 

10

Posts

0

Resources
4
 
littleshrimp posted on 2017-12-15 01:20 Which address did you read or post the code to see Unique device serial number The BlueNRG-2 device has a uni ...
This is the code void flash_read_mac(void) { uint32_t mac_24bits_ieee, mac_24bits_com, i; uint8_t mac[6]; mac_24bits_ieee = *(volatile int *)(0x100007F4); mac_24bits_com = *(volatile int *)(0x100007F4 + 4); for (i = 0; i < 4; i++) { mac = (uint8_t)(mac_24bits_ieee >> 8 * i); } for (i = 0; i < 2; i++) { mac[i+4] = (uint8_t)(mac_24bits_com >> 8 * i); } PRINTF("##---[%X] [%X] ----- ", mac_24bits_ieee, mac_24bits_com); for(i=0; i<6; i++) PRINTF("%02X ", mac); PRINTF("\r\n"); }
This post is from ST - Low Power RF

Comments

Try accessing the address 0x100007F4 directly in debug mode. My device is BlueNRG-1 and I can read the corresponding data [attachimg]335514[/attachimg]  Details Published on 2017-12-21 16:00
 
 
 

9720

Posts

24

Resources
5
 
dallas48 posted on 2017-12-21 15:36 This is the code void flash_read_mac(void) { uint32_t mac_24bits_ieee, mac_24bits_com, i; ...
Try accessing the address 0x100007F4 directly in debug mode My device is BlueNRG-1, and I can read the corresponding data
This post is from ST - Low Power RF
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 
 

10

Posts

0

Resources
6
 
littleshrimp posted on 2017-12-21 16:00 Try accessing the address 0x100007F4 directly in debug mode. Mine is BlueNRG-1 and I can read the corresponding data.
I can read NRG-1 normally but NRG-2 is all F


111.jpg (42.73 KB, downloads: 0)

NRG-2

NRG-2

2222.jpg (54.76 KB, downloads: 0)

NRG-1

NRG-1
This post is from ST - Low Power RF

Comments

I compared the manuals of bluenrg-1 and bluenrg-2, but I didn't find any special instructions on the unique device serial number. I also didn't find any corresponding information on the Internet. I don't have a bluenrg-2 board and can't help you test it. You can ask ST engineers or @nmg administrators to ask for help.  Details Published on 2017-12-21 17:16
 
 
 

10

Posts

0

Resources
7
 
littleshrimp posted on 2017-12-21 16:00 Try accessing the address 0x100007F4 directly in debug mode. My device is BlueNRG-1 and I can read the corresponding data.
By the way, how do I call the debug memory map? It is always gray and unavailable when I debug.
This post is from ST - Low Power RF
 
 
 

9720

Posts

24

Resources
8
 
dallas48 posted on 2017-12-21 16:45 I read that NRG-1 is also normal but NRG-2 is all F
I compared the manuals of bluenrg-1 and bluenrg-2, but did not find any special instructions on the Unique device serial number. I also did not find the corresponding information on the Internet. I do not have a bluenrg-2 board and cannot help you test it. You can ask the ST engineer or @nmg administrator and ask him to help.
This post is from ST - Low Power RF

Comments

nmg
Haha, please help send an email and wait for feedback from the lovely engineers of ST  Details Published on 2017-12-21 17:55
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 
 

5219

Posts

239

Resources
9
 
littleshrimp posted on 2017-12-21 17:16 I compared the manuals of bluenrg-1 and bluenrg-2, but didn't find any special instructions on the unique device serial number, and I didn't find any on the Internet...
Haha, please help send an email, and wait for feedback from the lovely engineers of ST
This post is from ST - Low Power RF
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
 
 

9720

Posts

24

Resources
10
 
nmg posted on 2017-12-21 17:55 Haha, please help send an email and wait for feedback from the lovely engineers of ST
This post is from ST - Low Power RF
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 
 

10

Posts

0

Resources
11
 
nmg posted on 2017-12-21 17:55 Haha, please help send an email and wait for feedback from the lovely engineers of ST
Thank you very much~
This post is from ST - Low Power RF
 
 
 

10

Posts

0

Resources
12
 
 
 

26

Posts

0

Resources
13
 
I guess the BlueNRG-2 hardware version is an engineering sample. I also had the BlueNRG-1 hardware read FF, and the later hardware versions were normal.
This post is from ST - Low Power RF
 
 
 

6

Posts

0

Resources
14
 
This post was last edited by saystar on 2017-12-22 17:13 The above answer is correct. The poster probably got an early sample of BlueNRG-2, which is an engineering sample and therefore does not have a unique ID. Normal chips will be the same as BlueNRG-1 and there is no need to worry about this problem. The poster can define an address in the code as an alternative for development and debugging.
This post is from ST - Low Power RF
 
 
 

6

Posts

0

Resources
15
 
dallas48 posted on 2017-12-21 16:46 By the way, how to call the debug memory map? It is always gray and unavailable when I debug
Which compiler did you use? In IAR, just open memory under the View menu.
This post is from ST - Low Power RF
 
 
 

10

Posts

0

Resources
16
 
saystar posted on 2017-12-22 17:08 The above answer is correct. The poster should have got an early sample of BlueNRG-2, which is an engineering sample, so there is no unique ID. Normal samples will be the same as BlueNRG-2...
This is how it is done now
This post is from ST - Low Power RF
 
 
 

10

Posts

0

Resources
17
 
melau posted on 2017-12-22 12:14 I guess the BlueNRG-2 hardware version is an engineering sample or something like that. I also had the BlueNRG-1 hardware version read FF, and the later hardware version...
It seems that this is the reason
This post is from ST - Low Power RF
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list