#-------------------------------------------------------------------------------- # Description: BLE FW Initialization Script # # Compatibility: BL6450B # # Last Updated: 19-Oct-2014 13:57:11.15 # # Version: 2.0 # #-------------------------------------------------------------------------------- #LE Enable Send_HCI_VS_LE_Enable 0xFD5B, 0x01, 0x01 Wait_HCI_Command_Complete_VS_LE_Enable_Event 5000, any, 0xfd5b, 0x00 # Disable Cortex Sleep Send_HCI_VS_LOAD_Cortex 0xFDA8, 0x01 Wait_HCI_Command_Complete_VS_LOAD_Cortex_Event 5000, any, 0xfda8, 0x00 # Cortex Reset (hold in reset while loading IMEM) Send_HCI_VS_Read_Modify_Write_Hardware_Register 0xFD09, 0x001bc000, 0x0001, 0x0001 Wait_HCI_Command_Complete_VS_Read_Modify_Write_Hardware_Register_Event 5000, any, 0xfd09, 0x00 ######################## # Patch Start ######################## Send_HCI_VS_Write_Memory_Block 0xFF05, 0x001b4bac, 0x08, "91:FF:47:F2:9B:35:47:F2" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, any, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x001b6320, 0x50, "30:BD:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, any, 0xff05, 0x00 Send_HCI_VS_Write_Memory_Block 0xFF05, 0x001b7398, 0x58, "70:47:02:46:14:3A:1E:D0:52:1E:24:D1:8A:78:02:2A:11:D9:12:1F:02:2A:0E:D9:1D:3A:1C:D0:92:1F:02:2A:19:D9:09:3A:17:D0:89:88:40:F2:00:00:C2:F2:30:00:08:43:FD:F7:4B:BE:09:89:40:F2:00:00:C2:F2:30:00:08:43:FD:F7:43:BE:89:88:40:F2:00:00:C2:F2:30:00:08:43:FD:F7:3B:BE:70:47" Wait_HCI_Command_Complete_VS_Write_Memory_Block_Event 5000, any, 0xff05, 0x00 ######################## # Patch End ######################## #release Cortex Reset Send_HCI_VS_Read_Modify_Write_Hardware_Register 0xFD09, 0x001bc000, 0x0000, 0x0001 Wait_HCI_Command_Complete_VS_Read_Modify_Write_Hardware_Register_Event 5000, any, 0xfd09, 0x00 # Enable Cortex Sleep #Send_HCI_VS_LOAD_Cortex 0xFDA8, 0x00 #Wait_HCI_Command_Complete_VS_LOAD_Cortex_Event 5000, any, 0xfda8, 0x00 #RESET BLE Send_HCI_VS_LE_Enable 0xFD5B, 0x01, 0x00 Wait_HCI_Command_Complete_VS_LE_Enable_Event 5000, any, 0xfd5b, 0x00 Send_HCI_VS_LE_Output_Power 0xFDDD, 0x01 Wait_HCI_Command_Complete_VS_LE_Output_Power_Event 5000, any, 0xfddd, 0x00