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 452d0fc1beSMatthias 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 742d0fc1beSMatthias 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 $@" 762d0fc1beSMatthias Ringwald @mkdir -p cc256x_bt_sp_v1.5 772d0fc1beSMatthias 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 792d0fc1beSMatthias Ringwaldcc256x_bt_sp_v1.5/initscripts-TIInit_6.7.16_ble_add-on.bts: cc256x_bt_sp_v1.5.zip 8037da03daSMatthias Ringwald @echo "Extracting $@" 812d0fc1beSMatthias Ringwald @mkdir -p cc256x_bt_sp_v1.5 822d0fc1beSMatthias 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 832d0fc1beSMatthias Ringwald 842d0fc1beSMatthias Ringwald# v1.6 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xb-bt-sp 852d0fc1beSMatthias Ringwaldcc256xb_bt_sp_v1.6.zip: 862d0fc1beSMatthias Ringwald echo "Downloading $@" 872d0fc1beSMatthias Ringwald @curl -sS -O $(BLUEKITCHEN_URL)/cc256xb_bt_sp_v1.6.zip 882d0fc1beSMatthias Ringwald 892d0fc1beSMatthias Ringwaldcc256xb_bt_sp_v1.6/initscripts-TIInit_6.7.16_bt_spec_4.1.bts: cc256xb_bt_sp_v1.6.zip 902d0fc1beSMatthias Ringwald @echo "Extracting $@" 912d0fc1beSMatthias Ringwald @mkdir -p cc256xb_bt_sp_v1.6 922d0fc1beSMatthias 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 932d0fc1beSMatthias Ringwald 942d0fc1beSMatthias Ringwaldcc256xb_bt_sp_v1.6/initscripts-TIInit_6.7.16_ble_add-on.bts: cc256xb_bt_sp_v1.6.zip 952d0fc1beSMatthias Ringwald @echo "Extracting $@" 962d0fc1beSMatthias Ringwald @mkdir -p cc256xb_bt_sp_v1.6 972d0fc1beSMatthias 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 107*7830d3e6SMatthias Ringwaldinitscripts-TIInit_6.12.26_v1.0.bts: cc256xc_bt_sp_v1.0.zip 10837da03daSMatthias Ringwald @echo "Extracting $@" 109*7830d3e6SMatthias Ringwald @unzip -q -p cc256xc_bt_sp_v1.0.zip CC256XC_BT_SP/v1.0/initscripts-TIInit_6.12.26.bts > $@ 11037da03daSMatthias Ringwald 111*7830d3e6SMatthias Ringwaldinitscripts-TIInit_6.12.26_ble_add-on_v1.0.bts: cc256xc_bt_sp_v1.0.zip 11237da03daSMatthias Ringwald @echo "Extracting $@" 113*7830d3e6SMatthias Ringwald @unzip -q -p 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 11845999011SMatthias Ringwald# V4.2 from BlueKitchen website, original: http://www.ti.com/tool/wl18xx-bt-sp 119d5814ca7SMatthias RingwaldTIInit_11.8.32.bts: 12037da03daSMatthias Ringwald @echo "Downloading $@" 12145999011SMatthias Ringwald @curl -sS -O $(BLUEKITCHEN_URL)/TIInit_11.8.32.bts 122d5814ca7SMatthias Ringwald 123d5814ca7SMatthias RingwaldTIInit_12.10.28.bts: 12437da03daSMatthias Ringwald @echo "Downloading $@" 12506ee659aSMatthias Ringwald @curl -sS -O $(TI_GIT_REPO_URL)/TIInit_12.10.28.bts 126d5814ca7SMatthias Ringwald 127d5814ca7SMatthias RingwaldTIInit_12.8.32.bts: 12837da03daSMatthias Ringwald @echo "Downloading $@" 12906ee659aSMatthias Ringwald @curl -sS -O $(TI_GIT_REPO_URL)/TIInit_12.8.32.bts 13037da03daSMatthias Ringwald 131d5814ca7SMatthias Ringwald 132638e16f3SMatthias Ringwald 13306ee659aSMatthias Ringwald# convert to .c files based on main file and option add-on 13406ee659aSMatthias Ringwald 135a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560_2.44.c: bluetooth_init_cc2560_2.44.bts 13606ee659aSMatthias Ringwald @echo "Creating $@" 13706ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 138a3fe55ccSMatthias Ringwald 139a3fe55ccSMatthias Ringwaldbluetooth_init_cc2560A_2.14.c: bluetooth_init_cc2560A_2.14.bts 14006ee659aSMatthias Ringwald @echo "Creating $@" 14106ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 142a3fe55ccSMatthias Ringwald 1430e1ffed0SMatthias Ringwaldbluetooth_init_cc2567_2.4.c: CC2567_BT_ANT_Service_Pack_2.4.bts 1440e1ffed0SMatthias Ringwald @echo "Creating $@" 1450e1ffed0SMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 1460e1ffed0SMatthias Ringwald 1470e1ffed0SMatthias Ringwaldbluetooth_init_cc2567_2.8.c: CC256x_BT_Service_Pack_2.8_ANT_1.16.bts 1480e1ffed0SMatthias Ringwald @echo "Creating $@" 1490e1ffed0SMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 1500e1ffed0SMatthias Ringwald 151a3fe55ccSMatthias Ringwaldbluetooth_init_cc2564_2.14.c: bluetooth_init_cc2564_2.14.bts 15206ee659aSMatthias Ringwald @echo "Creating $@" 15306ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 154a3fe55ccSMatthias Ringwald 155d5814ca7SMatthias Ringwaldbluetooth_init_cc2560B_1.2_BT_Spec_4.1.c: bluetooth_init_cc2560B_1.2_BT_Spec_4.1.bts 15606ee659aSMatthias Ringwald @echo "Creating $@" 15706ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 158d5814ca7SMatthias Ringwald 159d5814ca7SMatthias 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 16006ee659aSMatthias Ringwald @echo "Creating $@" 16106ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 162d5814ca7SMatthias Ringwald 163edc52946SMatthias Ringwaldbluetooth_init_cc2560B_1.4_BT_Spec_4.1.c: TIInit_6.7.16_bt_spec_4.1.bts 16406ee659aSMatthias Ringwald @echo "Creating $@" 16506ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 166edc52946SMatthias Ringwald 167edc52946SMatthias 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 16806ee659aSMatthias Ringwald @echo "Creating $@" 16906ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 170a3fe55ccSMatthias Ringwald 1712d0fc1beSMatthias 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 17206ee659aSMatthias Ringwald @echo "Creating $@" 17306ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 174638e16f3SMatthias Ringwald 1752d0fc1beSMatthias 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 1762d0fc1beSMatthias Ringwald @echo "Creating $@" 1772d0fc1beSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 1782d0fc1beSMatthias Ringwald 1792d0fc1beSMatthias 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 1802d0fc1beSMatthias Ringwald @echo "Creating $@" 1812d0fc1beSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 1822d0fc1beSMatthias Ringwald 1832d0fc1beSMatthias 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 18406ee659aSMatthias Ringwald @echo "Creating $@" 18506ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 186638e16f3SMatthias Ringwald 187*7830d3e6SMatthias Ringwaldbluetooth_init_cc2560C_1.0.c: initscripts-TIInit_6.12.26_v1.0.bts 18806ee659aSMatthias Ringwald @echo "Creating $@" 18906ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 190638e16f3SMatthias Ringwald 191*7830d3e6SMatthias Ringwaldbluetooth_init_cc2564C_1.0.c: initscripts-TIInit_6.12.26_v1.0.bts initscripts-TIInit_6.12.26_ble_add-on_v1.0.bts 19206ee659aSMatthias Ringwald @echo "Creating $@" 19306ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 194638e16f3SMatthias Ringwald 195d5814ca7SMatthias RingwaldTIInit_11.8.32.c: TIInit_11.8.32.bts 19606ee659aSMatthias Ringwald @echo "Creating $@" 19706ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 198d5814ca7SMatthias Ringwald 199d5814ca7SMatthias RingwaldTIInit_12.10.28.c: TIInit_12.10.28.bts 20006ee659aSMatthias Ringwald @echo "Creating $@" 20106ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 202d5814ca7SMatthias Ringwald 203a3fe55ccSMatthias RingwaldTIInit_12.8.32.c: TIInit_12.8.32.bts 20406ee659aSMatthias Ringwald @echo "Creating $@" 20506ee659aSMatthias Ringwald @$(CONVERSION_SCRIPT) $^ $@ 206a3fe55ccSMatthias Ringwald 207638e16f3SMatthias Ringwaldall-scripts: \ 208638e16f3SMatthias Ringwald bluetooth_init_cc2560_2.44.c \ 209638e16f3SMatthias Ringwald bluetooth_init_cc2560A_2.14.c \ 210638e16f3SMatthias Ringwald bluetooth_init_cc2564_2.14.bts \ 211638e16f3SMatthias Ringwald bluetooth_init_cc2560B_1.4_BT_Spec_4.1.c \ 212638e16f3SMatthias Ringwald bluetooth_init_cc2564B_1.4_BT_Spec_4.1.c \ 213638e16f3SMatthias Ringwald bluetooth_init_cc2560B_1.5_BT_Spec_4.1.c \ 214638e16f3SMatthias Ringwald bluetooth_init_cc2564B_1.5_BT_Spec_4.1.c \ 215638e16f3SMatthias Ringwald bluetooth_init_cc2560C_1.0.c \ 216638e16f3SMatthias Ringwald bluetooth_init_cc2564C_1.0.c \ 217638e16f3SMatthias Ringwald TIInit_11.8.32.c \ 218638e16f3SMatthias Ringwald TIInit_12.10.28.c \ 219638e16f3SMatthias Ringwald TIInit_12.8.32.c \ 220a3fe55ccSMatthias Ringwald 221a3fe55ccSMatthias Ringwaldclean-scripts: 22237da03daSMatthias Ringwald rm -fr cc256x*.zip CC256*.zip bluetooth_init_cc256*.c TIInit*.c *.bts BLE_init_cc256*.c 223a3fe55ccSMatthias Ringwald 224a3fe55ccSMatthias Ringwald 225