Hi:
KW36 BLE cann't set identity address to random(static) type when it work in central mode.
I use FRDM-KW36 board and import the SDK(2.2.11) example Inc and enable bond
Hi @__BingWang__ ,
Thanks for contacting NXP support.
I read the c code in the SDK, it seems to indicate that you need to ensure that
/* gAppUseBonding_d && gAppUsePrivacy_d */
is set before calling "Gap_SetRandomAddress()"
Could you provide which example of the SDK you are using? What codes were changed and what were the errors?
Hope you are doing well!
B.R.
Gavin
Hi Gavin_Jia:
I use frdmkw36_wireless_examples_bluetooth_lnc_freertos example. I set param :
and "Gap_SetRandomAddress()" set address success for Resolvable privaty Address,but the identity Address always be the public. I want to set device identity address to random, but i can't.
I only found the place to do is set ownAddressType like:
How to set identity address mode in NXP SDK ?
Hi @__BingWang__ ,
Sorry for my late reply. Could you please try this operations?
1. set the pHwParams->bluetooth_address value to your desired device static random address;
2. then set gSmpKeys.addressType to gBleAddrTypeRandom_c when the stack stays that the public address has been read.
case gPublicAddressRead_c:
#if (defined(gAppUsePairing_d) && (gAppUsePairing_d == 1U))
/* Override address type used by SMP */
gSmpKeys.addressType = gBleAddrTypeRandom_c;
#endif
Hope you are doing well!
B.R.
Gavin