5560 views|12 replies

43

Posts

0

Resources
The OP
 

Issues with changing MAC when batch flashing blueNRG-1 with BlueNRG-X Flasher Utility [Copy link]

 
 

MAC location: set to 0x10044BCC

******FLASH OPERATION******

Connected N.1 device by ST Link

17:57:53.953: Waiting device to flash -> Device connected
17:57:54.967: Device Identification -> BlueNRG-1
17:57:55.674: Mass Erase Operation -> SUCCESS
17:57:57.049: Device Flash Programming -> FAILED
17:58:00.917: Device Disconnection ->SUCCESS

17:58:02.009: Flash operation finished!


******END FLASH OPERATION******
I found that it cannot be written. I want to ask where the MAC address is written? Please help me.

This post is from ST - Low Power RF

Latest reply

Brother Xia, let me take a look.   Details Published on 2023-8-15 18:12
 
 

9717

Posts

24

Resources
2
 

UMxxxx_Flasher_ALPHA_v0.9.2.pdf (1.05 MB, downloads: 23)

This post is from ST - Low Power RF
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 
 

43

Posts

0

Resources
3
 

#if SERVER
uint8_t role = GAP_PERIPHERAL_ROLE;
uint8_t bdaddr[] = {0xaa, 0x00, 0x00, 0xE1, 0x80, 0x01};

#else
uint8_t role = GAP_CENTRAL_ROLE;
uint8_t bdaddr[] = {0xbb, 0x00, 0x00, 0 xE1, 0x80, 0x02};
#endif

/* Configure Public address */
ret = aci_hal_write_config_data(CONFIG_DATA_PUBADDR_OFFSET, CONFIG_DATA_PUBADDR_LEN, bdaddr);
if(ret != BLE_STATUS_SUCCESS){
printf("Setting BD_ADDR failed: 0x%02x\r\n", ret);
return ret;
}

The flashing was successful, but the MAC address is still aa, 00, 00, E1, 80, 01. The code used is BLE_Examples\BLE_Chat

This post is from ST - Low Power RF

Comments

BlueNRG-X Flasher Utility writes the address you want to define to the specified location of FLASH. In your code, bdaddr uses the address defined in memory, so the address written by BlueNRG-X Flasher Utility will not change your program. If you want to use BlueNRG-X Flasher  Details Published on 2020-12-7 12:42
 
 
 

9717

Posts

24

Resources
4
 
Senbenzakura Dabai posted on 2020-12-1 09:53 #if SERVER uint8_t role = GAP_PERIPHERAL_ROLE; uint8_t bdaddr[] = {0xaa, 0x00, 0x00, ...

BlueNRG-X Flasher Utility writes the address you want to define to the specified location of FLASH

In your code, bdaddr uses the memory address defined, so the address written by BlueNRG-X Flasher Utility will not change your program.

If you want to use the BlueNRG-X Flasher Utility to program the address, you need to map the data corresponding to the FLASH address to bdaddr in your code.

For example, you can

Then use BlueNRG-X Flasher Utility to flash the firmware and the address will change.

image.png (4.08 KB, downloads: 0)

image.png
This post is from ST - Low Power RF

Comments

OK, thank you.  Details Published on 2020-12-9 09:54
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 
 

43

Posts

0

Resources
5
 
littleshrimp posted on 2020-12-7 12:42 BlueNRG-X Flasher Utility writes the address you want to define to the specified location of FLASH. In your code, bdaddr uses memory definition...

OK, thank you.

This post is from ST - Low Power RF
 
 
 

4

Posts

0

Resources
6
 

This post is from ST - Low Power RF
 
 
 

4

Posts

0

Resources
7
 
littleshrimp published on 2020-11-30 19:35

Hello, I use BLUNRG-2, and I also need to batch program and use Utility to set the MAC address, but I can't set it successfully. Can you help me find out the reason? Thank you

礼_20220719201859.png (0 Bytes, downloads: 0)

礼_20220719201859.png

礼_20220719201831.png (0 Bytes, downloads: 0)

礼_20220719201831.png

111111.png (0 Bytes, downloads: 0)

111111.png
This post is from ST - Low Power RF
 
 
 

9717

Posts

24

Resources
8
 

You can take a look at this document first

um2406-the-rfflasher-utility-sw-package--stmicroelectronics.pdf (1.52 MB, downloads: 6)

This post is from ST - Low Power RF
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 
 

4

Posts

0

Resources
9
 
littleshrimp posted on 2022-7-19 23:32 You can take a look at this document first

Hello, I cannot modify the physical address successfully even if I directly modify it in the code without using the utility. What is the reason?

This post is from ST - Low Power RF

Comments

Did you use the official example or write your own code?  Details Published on 2022-7-22 09:56
 
 
 

9717

Posts

24

Resources
10
 
aldlkd posted on 2022-7-20 09:50 Hello, I cannot modify the physical address successfully even without using the Utility. What is the reason?

Did you use the official example or write your own code?

This post is from ST - Low Power RF
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 
 

4

Posts

0

Resources
11
 
littleshrimp posted on 2022-7-22 09:56 Did you use the official example or write your own code?

Thanks for the help, we modified it directly in the process, but we solved this problem in other ways, using broadcast data to distinguish different Bluetooth physical addresses.

Now there is another problem, that is, our sleep power consumption cannot be reduced, reaching 1mA

1. First, there is still broadcasting in sleep mode. We use aci_gap_set_non_discoverable() to turn off broadcasting, and then aci_gap_set_discoverable to turn on broadcasting, but we find that broadcasting cannot be turned on. After reading the documentation, we find that the device enters standby mode. Is it impossible to wake up through the set wake-up source? How should we turn off broadcasting?

2. Secondly, reduce power consumption by setting the gpio Mode

This post is from ST - Low Power RF

Comments

Have you read my reply in the private message? There is a link to the low power competition. There are many examples there. You can take a look.  Details Published on 2022-7-23 11:58
 
 
 

9717

Posts

24

Resources
12
 
aldlkd posted on 2022-7-23 08:58 Thanks for the help, we modified it directly in the process, but we used other methods to solve this problem, using broadcast data to distinguish different Bluetooth...

Have you read my reply in the private message? There is a link to the low power competition. There are many examples there. You can take a look.

This post is from ST - Low Power RF
 
 
 

3

Posts

1

Resources
13
 

Brother Xia, let me take a look.

This post is from ST - Low Power RF
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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