1d5814ca7SMatthias Ringwald# 237da03daSMatthias Ringwald# Makefile to download and convert TI's CC256x Service Pack .bts files from 3d5814ca7SMatthias Ringwald# http://processors.wiki.ti.com/index.php/CC256x_Downloads 4d5814ca7SMatthias Ringwald# 537da03daSMatthias Ringwald# Service Packs for CC256xB v1.5 and CC256xC v1.0 downloaded from BlueKitchen company website 637da03daSMatthias Ringwald# https://e2e.ti.com/support/wireless_connectivity/bluetooth_cc256x/f/660/p/560523/2056007#2056007 737da03daSMatthias Ringwald 837da03daSMatthias RingwaldTI_GIT_REPO_URL = https://git.ti.com/ti-bt/service-packs/blobs/raw/a027ae390d8790e56e1c78136c78fe6537470e91 937da03daSMatthias RingwaldBLUEKITCHEN_URL = https://bluekitchen-gmbh.com/files/ 10edc52946SMatthias RingwaldCONVERSION_SCRIPT=$(BTSTACK_ROOT)/chipset/cc256x/convert_bts_init_scripts.py 11d5814ca7SMatthias Ringwald 1237da03daSMatthias Ringwald 1337da03daSMatthias Ringwald# First generation CC2560 - AKA TIInit_6.2.31.bts 1437da03daSMatthias Ringwald 1537da03daSMatthias Ringwald# v2.44 - file part of .zip archive 16a3fe55ccSMatthias Ringwald 17a3fe55ccSMatthias RingwaldCC2560_BT_SP_BTS.zip: 1837da03daSMatthias Ringwald @echo "Downloading $@" 1937da03daSMatthias Ringwald @curl -sS -O http://processors.wiki.ti.com/images/d/da/CC2560_BT_SP_BTS.zip 20a3fe55ccSMatthias Ringwald 21a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560_2.44.bts: CC2560_BT_SP_BTS.zip 2237da03daSMatthias Ringwald @echo "Extracting $@" 2337da03daSMatthias Ringwald @unzip -q -j -o CC2560_BT_SP_BTS.zip CC2560_BT_SP_BTS/bluetooth_init_cc2560_2.44.bts 24a3fe55ccSMatthias Ringwald 2537da03daSMatthias Ringwald# Second generation CC2560A and CC2564 - AKA TIInit_6.6.15.bts 26a3fe55ccSMatthias Ringwald 2737da03daSMatthias Ringwald# v2.14 - files part of .zip archive 28a3fe55ccSMatthias Ringwald 29a3fe55ccSMatthias RingwaldCC2560A_BT_SP_BTS.zip: 3037da03daSMatthias Ringwald @echo "Downloading $@" 3106ee659aSMatthias Ringwald @curl -sS -O http://processors.wiki.ti.com/images/e/e7/CC2560A_BT_SP_BTS.zip 32a3fe55ccSMatthias Ringwald 33a3fe55ccSMatthias RingwaldCC2564_BT_BLE_SP_BTS.zip: 3437da03daSMatthias Ringwald @echo "Downloading $@" 3506ee659aSMatthias Ringwald @curl -sS -O http://processors.wiki.ti.com/images/1/1e/CC2564_BT_BLE_SP_BTS.zip 36a3fe55ccSMatthias Ringwald 37a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560A_2.14.bts: CC2560A_BT_SP_BTS.zip 3837da03daSMatthias Ringwald @echo "Extracting $@" 3937da03daSMatthias Ringwald @unzip -q -j -o CC2560A_BT_SP_BTS.zip CC2560A_BT_SP_BTS/bluetooth_init_cc2560A_2.14.bts 40a3fe55ccSMatthias Ringwald 41a3fe55ccSMatthias Ringwaldbluetooth_init_cc2564_2.14.bts: CC2564_BT_BLE_SP_BTS.zip 4237da03daSMatthias Ringwald @echo "Extracting $@" 4337da03daSMatthias Ringwald @unzip -q -j -o CC2564_BT_BLE_SP_BTS.zip CC2564_BT_BLE_SP_BTS/bluetooth_init_cc2564_2.14.bts 44a3fe55ccSMatthias Ringwald 45*2d0fc1beSMatthias Ringwald# Third generation CC256xB - AKA TIInit_6.7.16.bts 46a3fe55ccSMatthias Ringwald 4737da03daSMatthias Ringwald# v1.2 - versioned files TI Git Repo 48d5814ca7SMatthias Ringwaldbluetooth_init_cc2560B_1.2_BT_Spec_4.1.bts: 4937da03daSMatthias Ringwald @echo "Downloading $@" 5006ee659aSMatthias Ringwald @curl -sS -O $(TI_GIT_REPO_URL)/bluetooth_init_cc2560B_1.2_BT_Spec_4.1.bts 51d5814ca7SMatthias Ringwald 52d5814ca7SMatthias Ringwaldbluetooth_init_cc2564B_1.2_BT_Spec_4.1.bts: 5337da03daSMatthias Ringwald @echo "Downloading $@" 5406ee659aSMatthias Ringwald @curl -sS -O $(TI_GIT_REPO_URL)/bluetooth_init_cc2564B_1.2_BT_Spec_4.1.bts 55d5814ca7SMatthias Ringwald 56d5814ca7SMatthias RingwaldBLE_init_cc2564B_1.2.bts: 5737da03daSMatthias Ringwald @echo "Downloading $@" 5806ee659aSMatthias Ringwald @curl -sS -O $(TI_GIT_REPO_URL)/BLE_init_cc2564B_1.2.bts 59d5814ca7SMatthias Ringwald 6037da03daSMatthias Ringwald# v1.4 - versioned files TI Git Repo 61edc52946SMatthias RingwaldTIInit_6.7.16_bt_spec_4.1.bts: 6237da03daSMatthias Ringwald @echo "Downloading $@" 6306ee659aSMatthias Ringwald @curl -sS -O https://git.ti.com/ti-bt/service-packs/blobs/raw/54f5c151dacc608b19ab2ce4c30e27a3983048b2/initscripts/TIInit_6.7.16_bt_spec_4.1.bts 64edc52946SMatthias Ringwald 65edc52946SMatthias RingwaldTIInit_6.7.16_ble_add-on.bts: 6637da03daSMatthias Ringwald @echo "Downloading $@" 6706ee659aSMatthias Ringwald @curl -sS -O https://git.ti.com/ti-bt/service-packs/blobs/raw/89c8db14929f10d75627b132690432cd71f5f54f/initscripts/TIInit_6.7.16_ble_add-on.bts 68edc52946SMatthias Ringwald 6937da03daSMatthias Ringwald# v1.5 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xb-bt-sp 7037da03daSMatthias Ringwaldcc256x_bt_sp_v1.5.zip: 7137da03daSMatthias Ringwald echo "Downloading $@" 7206ee659aSMatthias Ringwald @curl -sS -O $(BLUEKITCHEN_URL)/cc256x_bt_sp_v1.5.zip 73638e16f3SMatthias Ringwald 74*2d0fc1beSMatthias Ringwaldcc256x_bt_sp_v1.5/initscripts-TIInit_6.7.16_bt_spec_4.1.bts: cc256x_bt_sp_v1.5.zip 7537da03daSMatthias Ringwald @echo "Extracting $@" 76*2d0fc1beSMatthias Ringwald @mkdir -p cc256x_bt_sp_v1.5 77*2d0fc1beSMatthias Ringwald @unzip -q -j -o cc256x_bt_sp_v1.5.zip -d cc256x_bt_sp_v1.5 CC256X_BT_SP/v1.5/initscripts-TIInit_6.7.16_bt_spec_4.1.bts 78638e16f3SMatthias Ringwald 79*2d0fc1beSMatthias Ringwaldcc256x_bt_sp_v1.5/initscripts-TIInit_6.7.16_ble_add-on.bts: cc256x_bt_sp_v1.5.zip 8037da03daSMatthias Ringwald @echo "Extracting $@" 81*2d0fc1beSMatthias Ringwald @mkdir -p cc256x_bt_sp_v1.5 82*2d0fc1beSMatthias Ringwald @unzip -q -j -o cc256x_bt_sp_v1.5.zip -d cc256x_bt_sp_v1.5 CC256X_BT_SP/v1.5/initscripts-TIInit_6.7.16_ble_add-on.bts 83*2d0fc1beSMatthias Ringwald 84*2d0fc1beSMatthias Ringwald# v1.6 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xb-bt-sp 85*2d0fc1beSMatthias Ringwaldcc256xb_bt_sp_v1.6.zip: 86*2d0fc1beSMatthias Ringwald echo "Downloading $@" 87*2d0fc1beSMatthias Ringwald @curl -sS -O $(BLUEKITCHEN_URL)/cc256xb_bt_sp_v1.6.zip 88*2d0fc1beSMatthias Ringwald 89*2d0fc1beSMatthias Ringwaldcc256xb_bt_sp_v1.6/initscripts-TIInit_6.7.16_bt_spec_4.1.bts: cc256xb_bt_sp_v1.6.zip 90*2d0fc1beSMatthias Ringwald @echo "Extracting $@" 91*2d0fc1beSMatthias Ringwald @mkdir -p cc256xb_bt_sp_v1.6 92*2d0fc1beSMatthias Ringwald @unzip -q -j -o cc256xb_bt_sp_v1.6.zip -d cc256xb_bt_sp_v1.6 CC256XB_BT_SP/v1.6/initscripts-TIInit_6.7.16_bt_spec_4.1.bts 93*2d0fc1beSMatthias Ringwald 94*2d0fc1beSMatthias Ringwaldcc256xb_bt_sp_v1.6/initscripts-TIInit_6.7.16_ble_add-on.bts: cc256xb_bt_sp_v1.6.zip 95*2d0fc1beSMatthias Ringwald @echo "Extracting $@" 96*2d0fc1beSMatthias Ringwald @mkdir -p cc256xb_bt_sp_v1.6 97*2d0fc1beSMatthias Ringwald @unzip -q -j -o cc256xb_bt_sp_v1.6.zip -d cc256xb_bt_sp_v1.6 CC256XB_BT_SP/v1.6/initscripts-TIInit_6.7.16_ble_add-on.bts 98638e16f3SMatthias Ringwald 99638e16f3SMatthias Ringwald 10037da03daSMatthias Ringwald# Fourth generation CC256xC - TIInit_6.12.26.bts 10137da03daSMatthias Ringwald 10237da03daSMatthias Ringwald# v1.0 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xc-bt-sp 10337da03daSMatthias Ringwaldcc256xc_bt_sp_v1.0.zip: 10437da03daSMatthias Ringwald @echo "Downloading $@" 10506ee659aSMatthias Ringwald @curl -sS -O $(BLUEKITCHEN_URL)/cc256xc_bt_sp_v1.0.zip 10637da03daSMatthias Ringwald 10737da03daSMatthias Ringwaldinitscripts-TIInit_6.12.26.bts: cc256xc_bt_sp_v1.0.zip 10837da03daSMatthias Ringwald @echo "Extracting $@" 10937da03daSMatthias Ringwald @unzip -q -j -o cc256xc_bt_sp_v1.0.zip CC256XC_BT_SP/v1.0/initscripts-TIInit_6.12.26.bts 11037da03daSMatthias Ringwald 11137da03daSMatthias Ringwaldinitscripts-TIInit_6.12.26_ble_add-on.bts: cc256xc_bt_sp_v1.0.zip 11237da03daSMatthias Ringwald @echo "Extracting $@" 11337da03daSMatthias Ringwald @unzip -q -j -o cc256xc_bt_sp_v1.0.zip CC256XC_BT_SP/v1.0/initscripts-TIInit_6.12.26_ble_add-on.bts 11437da03daSMatthias Ringwald 11537da03daSMatthias Ringwald 11637da03daSMatthias Ringwald# Various scripts for WL chipsets 11737da03daSMatthias Ringwald 118d5814ca7SMatthias RingwaldTIInit_11.8.32.bts: 11937da03daSMatthias Ringwald @echo "Downloading $@" 12006ee659aSMatthias Ringwald @curl -sS -O $(TI_GIT_REPO_URL)/TIInit_11.8.32.bts 121d5814ca7SMatthias Ringwald 122d5814ca7SMatthias RingwaldTIInit_12.10.28.bts: 12337da03daSMatthias Ringwald @echo "Downloading $@" 12406ee659aSMatthias Ringwald @curl -sS -O $(TI_GIT_REPO_URL)/TIInit_12.10.28.bts 125d5814ca7SMatthias Ringwald 126d5814ca7SMatthias RingwaldTIInit_12.8.32.bts: 12737da03daSMatthias Ringwald @echo "Downloading $@" 12806ee659aSMatthias Ringwald @curl -sS -O $(TI_GIT_REPO_URL)/TIInit_12.8.32.bts 12937da03daSMatthias Ringwald 130d5814ca7SMatthias Ringwald 131638e16f3SMatthias Ringwald 13206ee659aSMatthias Ringwald# convert to .c files based on main file and option add-on 13306ee659aSMatthias Ringwald 134a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560_2.44.c: bluetooth_init_cc2560_2.44.bts 13506ee659aSMatthias Ringwald @echo "Creating $@" 13606ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 137a3fe55ccSMatthias Ringwald 138a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560A_2.14.c: bluetooth_init_cc2560A_2.14.bts 13906ee659aSMatthias Ringwald @echo "Creating $@" 14006ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 141a3fe55ccSMatthias Ringwald 142a3fe55ccSMatthias Ringwaldbluetooth_init_cc2564_2.14.c: bluetooth_init_cc2564_2.14.bts 14306ee659aSMatthias Ringwald @echo "Creating $@" 14406ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 145a3fe55ccSMatthias Ringwald 146d5814ca7SMatthias Ringwaldbluetooth_init_cc2560B_1.2_BT_Spec_4.1.c: bluetooth_init_cc2560B_1.2_BT_Spec_4.1.bts 14706ee659aSMatthias Ringwald @echo "Creating $@" 14806ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 149d5814ca7SMatthias Ringwald 150d5814ca7SMatthias Ringwaldbluetooth_init_cc2564B_1.2_BT_Spec_4.1.c: bluetooth_init_cc2564B_1.2_BT_Spec_4.1.bts BLE_init_cc2564B_1.2.bts 15106ee659aSMatthias Ringwald @echo "Creating $@" 15206ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 153d5814ca7SMatthias Ringwald 154edc52946SMatthias Ringwaldbluetooth_init_cc2560B_1.4_BT_Spec_4.1.c: TIInit_6.7.16_bt_spec_4.1.bts 15506ee659aSMatthias Ringwald @echo "Creating $@" 15606ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 157edc52946SMatthias Ringwald 158edc52946SMatthias Ringwaldbluetooth_init_cc2564B_1.4_BT_Spec_4.1.c: TIInit_6.7.16_bt_spec_4.1.bts TIInit_6.7.16_ble_add-on.bts 15906ee659aSMatthias Ringwald @echo "Creating $@" 16006ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 161a3fe55ccSMatthias Ringwald 162*2d0fc1beSMatthias Ringwaldbluetooth_init_cc2560B_1.5_BT_Spec_4.1.c: cc256x_bt_sp_v1.5/initscripts-TIInit_6.7.16_bt_spec_4.1.bts 16306ee659aSMatthias Ringwald @echo "Creating $@" 16406ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 165638e16f3SMatthias Ringwald 166*2d0fc1beSMatthias Ringwaldbluetooth_init_cc2564B_1.5_BT_Spec_4.1.c: cc256x_bt_sp_v1.5/initscripts-TIInit_6.7.16_bt_spec_4.1.bts cc256x_bt_sp_v1.5/initscripts-TIInit_6.7.16_ble_add-on.bts 167*2d0fc1beSMatthias Ringwald @echo "Creating $@" 168*2d0fc1beSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 169*2d0fc1beSMatthias Ringwald 170*2d0fc1beSMatthias Ringwaldbluetooth_init_cc2560B_1.6_BT_Spec_4.1.c: cc256xb_bt_sp_v1.6/initscripts-TIInit_6.7.16_bt_spec_4.1.bts 171*2d0fc1beSMatthias Ringwald @echo "Creating $@" 172*2d0fc1beSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 173*2d0fc1beSMatthias Ringwald 174*2d0fc1beSMatthias Ringwaldbluetooth_init_cc2564B_1.6_BT_Spec_4.1.c: cc256xb_bt_sp_v1.6/initscripts-TIInit_6.7.16_bt_spec_4.1.bts cc256xb_bt_sp_v1.6/initscripts-TIInit_6.7.16_ble_add-on.bts 17506ee659aSMatthias Ringwald @echo "Creating $@" 17606ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 177638e16f3SMatthias Ringwald 178638e16f3SMatthias Ringwaldbluetooth_init_cc2560C_1.0.c: initscripts-TIInit_6.12.26.bts 17906ee659aSMatthias Ringwald @echo "Creating $@" 18006ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 181638e16f3SMatthias Ringwald 182638e16f3SMatthias Ringwaldbluetooth_init_cc2564C_1.0.c: initscripts-TIInit_6.12.26.bts initscripts-TIInit_6.12.26_ble_add-on.bts 18306ee659aSMatthias Ringwald @echo "Creating $@" 18406ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 185638e16f3SMatthias Ringwald 186d5814ca7SMatthias RingwaldTIInit_11.8.32.c: TIInit_11.8.32.bts 18706ee659aSMatthias Ringwald @echo "Creating $@" 18806ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 189d5814ca7SMatthias Ringwald 190d5814ca7SMatthias RingwaldTIInit_12.10.28.c: TIInit_12.10.28.bts 19106ee659aSMatthias Ringwald @echo "Creating $@" 19206ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 193d5814ca7SMatthias Ringwald 194a3fe55ccSMatthias RingwaldTIInit_12.8.32.c: TIInit_12.8.32.bts 19506ee659aSMatthias Ringwald @echo "Creating $@" 19606ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 197a3fe55ccSMatthias Ringwald 198638e16f3SMatthias Ringwaldall-scripts: \ 199638e16f3SMatthias Ringwald bluetooth_init_cc2560_2.44.c \ 200638e16f3SMatthias Ringwald bluetooth_init_cc2560A_2.14.c \ 201638e16f3SMatthias Ringwald bluetooth_init_cc2564_2.14.bts \ 202638e16f3SMatthias Ringwald bluetooth_init_cc2560B_1.4_BT_Spec_4.1.c \ 203638e16f3SMatthias Ringwald bluetooth_init_cc2564B_1.4_BT_Spec_4.1.c \ 204638e16f3SMatthias Ringwald bluetooth_init_cc2560B_1.5_BT_Spec_4.1.c \ 205638e16f3SMatthias Ringwald bluetooth_init_cc2564B_1.5_BT_Spec_4.1.c \ 206638e16f3SMatthias Ringwald bluetooth_init_cc2560C_1.0.c \ 207638e16f3SMatthias Ringwald bluetooth_init_cc2564C_1.0.c \ 208638e16f3SMatthias Ringwald TIInit_11.8.32.c \ 209638e16f3SMatthias Ringwald TIInit_12.10.28.c \ 210638e16f3SMatthias Ringwald TIInit_12.8.32.c \ 211a3fe55ccSMatthias Ringwald 212a3fe55ccSMatthias Ringwaldclean-scripts: 21337da03daSMatthias Ringwald rm -fr cc256x*.zip CC256*.zip bluetooth_init_cc256*.c TIInit*.c *.bts BLE_init_cc256*.c 214a3fe55ccSMatthias Ringwald 215a3fe55ccSMatthias Ringwald 216