This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Changing the MAC address on nRF51822

Hi, i used this script to change my MAC adress but i checked with MCP , the MAC @ is the same. More then that, the error code returned is really not logic in fact i got error=0x00003202 which dosen't much with no one of the pretended values (NRF_SUCCESS,NRF_ERROR_INVALID_ADDR,NRF_ERROR_INVALID_PARAM,BLE_ERROR_GAP_INVALID_BLE_ADDR,NRF_ERROR_BUSY,NRF_ERROR_INVALID_STATE)

    //This is my code to change MAC address
     ble_gap_addr_t new_add ;
 new_add.addr_type=BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE;
 int i=0;

 for(i=0;i<6;i++)  
   new_add.addr[i]=0xE7;

static uint32_t 	error =0 ;

error=sd_ble_gap_address_set(BLE_GAP_ADDR_CYCLE_MODE_NONE, &new_add) ;

Any idea ?

Related