MAC address and Sflash row 0

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
D_Sd_3235936
Level 4
Level 4
25 sign-ins 50 questions asked 25 replies posted

Encounter this behavior in PSOC 4 with BLE.

After testing i saw that:

Writing less than 7 bytes in the beginning of  Sflash Row0 changes the MAC address of the device,

But when more than 7 bytes are written, MAC address does not change. (or reverts to default)

Can you please explain?

Thanks.

0 Likes
1 Solution
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

The device address stored in Row0 of SFlash and entered in PSoC4-BLE-SFLASH-Update tool is structure of type CYBLE_GAP_BD_ADDR_T. Your obervation is due to bdAddr[(0x06u)]. Please find more details in BLE component datasheet.

struct CYBLE_GAP_BD_ADDR_T

Data Fields

• uint8 bdAddr [(0x06u)]

• uint8 type

Field Documentation

uint8 CYBLE_GAP_BD_ADDR_T::bdAddr[(0x06u)]

Bluetooth device address

uint8 CYBLE_GAP_BD_ADDR_T::type

public = 0, Random = 1

View solution in original post

0 Likes
1 Reply
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

The device address stored in Row0 of SFlash and entered in PSoC4-BLE-SFLASH-Update tool is structure of type CYBLE_GAP_BD_ADDR_T. Your obervation is due to bdAddr[(0x06u)]. Please find more details in BLE component datasheet.

struct CYBLE_GAP_BD_ADDR_T

Data Fields

• uint8 bdAddr [(0x06u)]

• uint8 type

Field Documentation

uint8 CYBLE_GAP_BD_ADDR_T::bdAddr[(0x06u)]

Bluetooth device address

uint8 CYBLE_GAP_BD_ADDR_T::type

public = 0, Random = 1

0 Likes