1 Reply Latest reply on Jan 8, 2020 9:48 PM by GeonaP_26

    MAC address and Sflash row 0

    D.Sd_3235936

      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.

        • 1. Re: MAC address and Sflash row 0
          GeonaP_26

          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