We produce products with CYBL10161，but all products have the same Bluetooth mac address。we must set the mac address by uart to send commond after programmed 。but it is too complicated。i want to ask Is there a more convenient way to automatically generate the mac address at the time of programmed 。thanks for help。
You can use the CyBle_SetDeviceAddress API to change the Mac Address in the firmware. You can derive the mac address from th Silicon ID of the chip so that each chip has its unique MAC Address.
To get the silicon ID, you can use the API:
CyGetUniqueID is used to get the 64 Bit unique ID:
//where ID is declared as uint32 ID;