cc256x: update CC256xC to v1.4

This commit is contained in:
Matthias Ringwald 2020-09-11 15:15:24 +02:00
parent b596325d25
commit f2eb090749
11 changed files with 34 additions and 12 deletions

View File

@ -168,6 +168,20 @@ initscripts-TIInit_6.12.26_ble_add-on_v1.3.bts: cc256xc_bt_sp_v1.3.zip
@echo "Extracting $@"
@unzip -q -p cc256xc_bt_sp_v1.3.zip CC256XC_BT_SP/v1.3/initscripts-TIInit_6.12.26_ble_add-on.bts > $@
# v1.4 - unversioned files from BlueKitchen website, original: http://www.ti.com/tool/cc256xc-bt-sp
cc256xc_bt_sp_v1.4.zip:
@echo "Downloading $@"
@curl -sS -O $(BLUEKITCHEN_URL)/cc256xc_bt_sp_v1.4.zip
initscripts-TIInit_6.12.26_v1.4.bts: cc256xc_bt_sp_v1.4.zip
@echo "Extracting $@"
@unzip -q -p cc256xc_bt_sp_v1.4.zip CC256XC_BT_SP/v1.4/initscripts-TIInit_6.12.26.bts > $@
initscripts-TIInit_6.12.26_ble_add-on_v1.4.bts: cc256xc_bt_sp_v1.4.zip
@echo "Extracting $@"
@unzip -q -p cc256xc_bt_sp_v1.4.zip CC256XC_BT_SP/v1.4/initscripts-TIInit_6.12.26_ble_add-on.bts > $@
# Various scripts for WL chipsets
# V4.2 from BlueKitchen website, original: http://www.ti.com/tool/wl18xx-bt-sp
@ -279,6 +293,14 @@ bluetooth_init_cc2564C_1.3.c: initscripts-TIInit_6.12.26_v1.3.bts initscripts-TI
@echo "Creating $@"
@$(CONVERSION_SCRIPT) $^ $@
bluetooth_init_cc2560C_1.4.c: initscripts-TIInit_6.12.26_v1.4.bts
@echo "Creating $@"
@$(CONVERSION_SCRIPT) $^ $@
bluetooth_init_cc2564C_1.4.c: initscripts-TIInit_6.12.26_v1.4.bts initscripts-TIInit_6.12.26_ble_add-on_v1.4.bts
@echo "Creating $@"
@$(CONVERSION_SCRIPT) $^ $@
TIInit_11.8.32.c: TIInit_11.8.32.bts
@echo "Creating $@"

View File

@ -283,7 +283,7 @@ include $(PERIPH_DRIVER_DIR)/periphdriver.mk
include $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source/$(COMPILER)/$(TARGET_LC).mk
# fetch and convert init scripts
# use bluetooth_init_cc2564B_1.6_BT_Spec_4.1.c
# use bluetooth_init_cc2564B_1.8_BT_Spec_4.1.c
include ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc
rm-compiled-gatt-file:

View File

@ -34,7 +34,7 @@ btstack_root = script_path + '../../'
## pick correct init script based on your hardware
# - init script for CC2564B
cc256x_init_script = 'bluetooth_init_cc2564B_1.6_BT_Spec_4.1.c'
cc256x_init_script = 'bluetooth_init_cc2564B_1.8_BT_Spec_4.1.c'
subprocess.call("make -f ../Makefile -C src " + cc256x_init_script, shell=True)

View File

@ -21,7 +21,7 @@ CORE += \
wav_util.c \
0000000_META_hci_patches_v7.c \
# bluetooth_init_cc2564_2.14.c \
# bluetooth_init_cc2564C_1.3.c \
# bluetooth_init_cc2564C_1.4.c \
# TI-WL183x requires TIInit_11.8.32.c

View File

@ -7,8 +7,8 @@ Most Bluetooth Bluetooth Controllers connected via UART/H4 require some special
The CC2564x needs the correct init script to start up. The Makfile already has entries for most silicon revisions:
- CC2560: bluetooth_init_cc2564_2.14.c
- CC2564B: bluetooth_init_cc2564B_1.6_BT_Spec_4.1.
- CC2564C: bluetooth_init_cc2564C_1.3.c
- CC2564B: bluetooth_init_cc2564B_1.8_BT_Spec_4.1.c
- CC2564C: bluetooth_init_cc2564C_1.4.c
Please pick the correct one. The main.c verifies that the correct script is loaded, but the init script is linked to the executable.

View File

@ -65,7 +65,7 @@ set(SOURCES_POSIX
set(SOURCES_CHIPSET
${BTSTACK_ROOT}/chipset/bcm/btstack_chipset_bcm.c
${BTSTACK_ROOT}/chipset/cc256x/btstack_chipset_cc256x.c
bluetooth_init_cc2564C_1.3.c
bluetooth_init_cc2564C_1.4.c
${BTSTACK_ROOT}/chipset/csr/btstack_chipset_csr.c
)

View File

@ -13,8 +13,8 @@ Most Bluetooth Bluetooth Controllers connected via UART/H4 require some special
The CC2564x needs the correct init script to start up. The Makfile already has entries for most silicon revisions:
- CC2560: bluetooth_init_cc2564_2.14.c
- CC2564B: bluetooth_init_cc2564B_1.6_BT_Spec_4.1.
- CC2564C: bluetooth_init_cc2564C_1.3.c
- CC2564B: bluetooth_init_cc2564B_1.8_BT_Spec_4.1.c
- CC2564C: bluetooth_init_cc2564C_1.4.c
Please pick the correct one. The main.c verifies that the correct script is loaded, but the init script is linked to the executable.

View File

@ -12,7 +12,7 @@ import subprocess
# init_script = 'bluetooth_init_cc2564B_1.8_BT_Spec_4.1.c'
# use for CC2564C
init_script = 'bluetooth_init_cc2564C_1.3.c'
init_script = 'bluetooth_init_cc2564C_1.4.c'
gatt_update_bat_template = '''python.exe BTSTACK_ROOT\\tool\\compile_gatt.py BTSTACK_ROOT\\example\\EXAMPLE.gatt PROJECT_SRC\\EXAMPLE.h
'''

View File

@ -25,7 +25,7 @@ CORE = \
COMMON = \
ad_parser.c \
bluetooth_init_cc2564B_1.6_BT_Spec_4.1.c \
bluetooth_init_cc2564B_1.8_BT_Spec_4.1.c \
btstack_chipset_cc256x.c \
btstack_link_key_db_memory.c \
rfcomm.c \

View File

@ -13,7 +13,7 @@ CC256x Bluetooth module:
- [CC2564B Dual-mode Bluetooth® Controller Evaluation Module](https://store.ti.com/cc2564modnem.aspx)
- [CC2564C Dual-mode Bluetooth® Controller Evaluation Module](https://store.ti.com/CC256XCQFN-EM-CC2564C-Dual-Mode-Bluetooth-Controller-Evaluation-Module-P51277.aspx)
The module with the older CC2564B is around USD 20, while the one with the new CC2564C costs around USD 60. The projects are configured for the CC2564B. When using the CC2564C, *bluetooth_init_cc2564C_1.3.c* should be used as cc256x_init_script.
The module with the older CC2564B is around USD 20, while the one with the new CC2564C costs around USD 60. The projects are configured for the CC2564B. When using the CC2564C, *bluetooth_init_cc2564C_1.4.c* should be used as cc256x_init_script.
## Software

View File

@ -9,7 +9,7 @@ COMMON += \
btstack_uart_block_windows.c \
le_device_db_tlv.c \
btstack_link_key_db_tlv.c \
bluetooth_init_cc2564B_1.6_BT_Spec_4.1.c \
bluetooth_init_cc2564B_1.8_BT_Spec_4.1.c \
btstack_chipset_cc256x.c \
btstack_chipset_csr.c \
btstack_chipset_em9301.c \