How to write BD_ADDR(6byte) to CY8C4248lqi with external programmer

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

cross mob
Anonymous
Not applicable

I am programming the external programmer with CY8C4248lqi.

How to write BD_ADDR(6byte) to CY8C4248lqi with external programmer ?

I know that the Bluetooth block need this address for all individual device.

Someone comment me.

Thanks

Justin

0 Likes
1 Solution
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

The Bluetooth Address is the public address mentioned in the GAP Settings of the BLE in the pic shown below:

ble_address.PNG

In the code, open ble.c file and you can see the following line of code:

CYBLE_GAP_BD_ADDR_T cyBle_deviceAddress = {{0x06u, 0x00u, 0x00u, 0x50u, 0xA0u, 0x00u}, 0x00u };

This is used to set the structure of CYBLE_GAP_BD_ADDR_T which basically is defined as follows:

typedef struct

{

    /** Bluetooth device address */

    uint8     bdAddr[CYBLE_GAP_BD_ADDR_SIZE];

/** public = 0, Random = 1 */

    uint8     type;

}CYBLE_GAP_BD_ADDR_T;

Hence, the bdAddr array will store the 6 Byte address in big endian format which is highlighted in bold above. This is nothing but the public address we see in the pic attached above.

You can understand more by running any code example of BLE and observing the files ble.c, ble_Stack.h etc..

Link: GitHub - cypresssemiconductorco/PSoC4-MCU-BLE-Connectivity-Designs: This repository provides example...

Regards,

Dheeraj

View solution in original post

1 Reply
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

The Bluetooth Address is the public address mentioned in the GAP Settings of the BLE in the pic shown below:

ble_address.PNG

In the code, open ble.c file and you can see the following line of code:

CYBLE_GAP_BD_ADDR_T cyBle_deviceAddress = {{0x06u, 0x00u, 0x00u, 0x50u, 0xA0u, 0x00u}, 0x00u };

This is used to set the structure of CYBLE_GAP_BD_ADDR_T which basically is defined as follows:

typedef struct

{

    /** Bluetooth device address */

    uint8     bdAddr[CYBLE_GAP_BD_ADDR_SIZE];

/** public = 0, Random = 1 */

    uint8     type;

}CYBLE_GAP_BD_ADDR_T;

Hence, the bdAddr array will store the 6 Byte address in big endian format which is highlighted in bold above. This is nothing but the public address we see in the pic attached above.

You can understand more by running any code example of BLE and observing the files ble.c, ble_Stack.h etc..

Link: GitHub - cypresssemiconductorco/PSoC4-MCU-BLE-Connectivity-Designs: This repository provides example...

Regards,

Dheeraj