mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-26 09:41:01 +00:00
atwilc3000: download individual firmware files on demand
This commit is contained in:
parent
069d175350
commit
69e3d9734d
@ -1,17 +0,0 @@
|
||||
#
|
||||
# Makefile to convert .bin files from ATWILC3000 HCI Firmware release
|
||||
#
|
||||
|
||||
all: wilc3000_bt_firmware.bin wilc3000_bt_firmware_no_rtc.bin
|
||||
./convert_firmware_bin.py
|
||||
|
||||
wilc3000_bt_firmware.bin:
|
||||
curl -O https://raw.githubusercontent.com/atwilc3000/firmware/master/wilc3000_bt_firmware.bin
|
||||
|
||||
wilc3000_bt_firmware_no_rtc.bin:
|
||||
curl -O https://raw.githubusercontent.com/atwilc3000/firmware/master/wilc3000_bt_firmware_no_rtc.bin
|
||||
clean:
|
||||
rm -f *.h *.c
|
||||
|
||||
clean-firmware:
|
||||
rm -f *.bin
|
19
chipset/atwilc3000/Makefile.inc
Normal file
19
chipset/atwilc3000/Makefile.inc
Normal file
@ -0,0 +1,19 @@
|
||||
#
|
||||
# Makefile to convert .bin files from ATWILC3000 HCI Firmware release
|
||||
#
|
||||
|
||||
CONVERSION_SCRIPT=$(BTSTACK_ROOT)/chipset/atwilc3000/convert_firmware_bin.py
|
||||
|
||||
wilc3000_bt_firmware.c:
|
||||
@$(CONVERSION_SCRIPT) wilc3000_bt_firmware.bin
|
||||
|
||||
wilc3000_bt_firmware_no_rtc.c:
|
||||
@$(CONVERSION_SCRIPT) wilc3000_bt_firmware.bin
|
||||
|
||||
wilc3000_bt_firmware.bin:
|
||||
@echo "Downloading $@"
|
||||
@curl -O https://raw.githubusercontent.com/atwilc3000/firmware/master/wilc3000_bt_firmware.bin
|
||||
|
||||
wilc3000_bt_firmware_no_rtc.bin:
|
||||
@echo "Downloading $@"
|
||||
curl -O https://raw.githubusercontent.com/atwilc3000/firmware/master/wilc3000_bt_firmware_no_rtc.bin
|
@ -1,16 +1,12 @@
|
||||
#!/usr/bin/env python
|
||||
# BlueKitchen GmbH (c) 2012-2014
|
||||
|
||||
# avr-objcopy -I ihex -O binary hci_581_active_uart.hex hci_581_active_uart.bin
|
||||
|
||||
# requires IntelHex package https://pypi.python.org/pypi/IntelHex
|
||||
# docs: http://python-intelhex.readthedocs.io/en/latest/
|
||||
|
||||
from intelhex import IntelHex
|
||||
import glob
|
||||
# BlueKitchen GmbH (c) 2017
|
||||
import sys
|
||||
|
||||
usage = '''This script converts the HCI Firmware in .bin format for Atmel WILC3000
|
||||
into C files to be used with BTstack.
|
||||
|
||||
Usage:
|
||||
$ ./convert_firmware_bin.py firmware.bin
|
||||
'''
|
||||
|
||||
header = '''
|
||||
@ -72,12 +68,11 @@ def convert_bin(basename):
|
||||
fout.write(code_end);
|
||||
print ('Done\n')
|
||||
|
||||
files = glob.glob('*.bin')
|
||||
if not files:
|
||||
# check usage: 1 param
|
||||
if not len(sys.argv) == 2:
|
||||
print(usage)
|
||||
sys.exit(1)
|
||||
sys.exit(1)
|
||||
|
||||
# convert each of them
|
||||
for name in files:
|
||||
basename = name.replace('.bin','')
|
||||
convert_bin(basename)
|
||||
name = sys.argv[1]
|
||||
basename = name.replace('.bin','')
|
||||
convert_bin(basename)
|
||||
|
@ -16,6 +16,9 @@ CORE += \
|
||||
# examples
|
||||
include ${BTSTACK_ROOT}/example/Makefile.inc
|
||||
|
||||
# firmware
|
||||
include ${BTSTACK_ROOT}/chipset/atwilc3000/Makefile.inc
|
||||
|
||||
CFLAGS += -g -Wall -Werror \
|
||||
-I$(BTSTACK_ROOT)/platform/posix \
|
||||
-I$(BTSTACK_ROOT)/chipset/atwilc3000 \
|
||||
@ -41,4 +44,3 @@ endif
|
||||
# LDFLAGS += -L/sw/lib -lportaudio -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,Carbon
|
||||
|
||||
all: ${EXAMPLES}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user