renesas-tb-s1ja: disable HCI dump, fix .cproject, disable a2dp/hsp/hfp/audio demos, add to main readme

This commit is contained in:
Matthias Ringwald 2020-04-17 16:05:46 +02:00
parent 558ceb4a88
commit 3035e4e529
5 changed files with 23 additions and 12 deletions

View File

@ -50,6 +50,7 @@ Build Status | Port | Platform
[<img src="https://buildbot.bluekitchen-gmbh.com/btstack/badges/port-msp-exp430f5438-cc2564b-develop.svg">](https://buildbot.bluekitchen-gmbh.com/btstack/#/builders/port-msp-exp430f5438-cc2564b-develop) | [msp-exp430f5438-cc2564b](https://github.com/bluekitchen/btstack/tree/develop/port/msp-exp430f5438-cc2564b) |[MSP430F5438 Experimenter Board for MSP430](http://www.ti.com/tool/msp-exp430f5438) with [Bluetooth CC2564 Module Evaluation Board](http://www.ti.com/tool/cc2564modnem)
[<img src="https://buildbot.bluekitchen-gmbh.com/btstack/badges/port-msp430f5229lp-cc2564b-develop.svg">](https://buildbot.bluekitchen-gmbh.com/btstack/#/builders/port-msp430f5229lp-cc2564b-develop) | [msp430f5529lp-cc2564b](https://github.com/bluekitchen/btstack/tree/develop/port/msp430f5229lp-cc2564b) | [MSP-EXP430F5529LP LaunchPad](http://www.ti.com/ww/en/launchpad/launchpads-msp430-msp-exp430f5529lp.html#tabs) with [Bluetooth CC2564 Module Evaluation Board](http://www.ti.com/tool/cc2564modnem) and [EM Adapter BoosterPack](http://www.ti.com/tool/boost-ccemadapter) with additional 32768Hz quartz oscillator
[<img src="https://buildbot.bluekitchen-gmbh.com/btstack/badges/port-max32630-fthr-develop.svg">](https://buildbot.bluekitchen-gmbh.com/btstack/#/builders/port-max32630-fthr) | [max32630-fthr](https://github.com/bluekitchen/btstack/tree/develop/port/max32630-fthr) | [MAX32630FTHR ARM Cortex M4F Board](https://www.maximintegrated.com/en/products/digital/microcontrollers/MAX32630FTHR.html) with onboard [Panasonic PAN1326 module](https://na.industrial.panasonic.com/products/wireless-connectivity/bluetooth/multi-mode/series/pan13261316-series/CS467) containing [TI CC2564B Bluetooth controller](http://www.ti.com/product/cc2564)
No build server | [renesas-tb-s1ja-cc256x](https://github.com/bluekitchen/btstack/tree/develop/port/renesas-tb-s1ja-cc256x) | [TB-S1JA Target Board Kit](https://www.renesas.com/eu/en/products/synergy/hardware/kits/tb-s1ja.html) with with [Dual-mode Bluetooth® CC2564 evaluation board](http://www.ti.com/tool/CC256XQFNEM) and [EM Adapter BoosterPack](http://www.ti.com/tool/boost-ccemadapter) with additional 32768Hz quartz oscillator
[<img src="https://buildbot.bluekitchen-gmbh.com/btstack/badges/port-samv71-xplained-atwilc3000-develop.svg">](https://buildbot.bluekitchen-gmbh.com/btstack/#/builders/port-samv71-xplained-atwilc3000-develop) | [samv71-xplained-atwilc3000](https://github.com/bluekitchen/btstack/tree/develop/port/samv71-xplained-atwilc3000) | [SAMV71 Ultra Xplained Ultra](http://www.atmel.com/tools/atsamv71-xult.aspx) evaluation kit with [ATWILC3000 SHIELD](http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=ATWILC3000-SHLD)
[<img src="https://buildbot.bluekitchen-gmbh.com/btstack/badges/port-stm32-f103rb-nucleo-develop.svg">](https://buildbot.bluekitchen-gmbh.com/btstack/#/builders/port-stm32-f103rb-nucleo-develop) | [stm32-f103rb-nucleo](https://github.com/bluekitchen/btstack/tree/develop/port/stm32-f103rb-nucleo) | [STM32 Nucleo development board NUCLEO-F103RB](http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF259875) with [Bluetooth CC2564 Module Evaluation Board](http://www.ti.com/tool/cc2564modnem) and [EM Adapter BoosterPack](http://www.ti.com/tool/boost-ccemadapter) with additional 32768Hz quartz oscillator
[<img src="https://buildbot.bluekitchen-gmbh.com/btstack/badges/port-stm32-f4discovery-cc256x-develop.svg">](https://buildbot.bluekitchen-gmbh.com/btstack/#/builders/port-stm32-f4discovery-cc256x-develop) | [stm32-f4discovery-cc2564b](https://github.com/bluekitchen/btstack/tree/develop/port/stm32-f4discovery-cc256x) | [STM32 F4 Discovery Board](http://www.st.com/en/evaluation-tools/stm32f4discovery.html) with [CC256xEM Bluetooth Adapter Kit for ST](https://store.ti.com/CC256XEM-STADAPT-CC256xEM-Bluetooth-Adapter-Kit-P45158.aspx) and [CC2564B Dual-mode Bluetooth® Controller Evaluation Module](https://store.ti.com/cc2564modnem.aspx)

View File

@ -42,7 +42,12 @@ Generate example projects
$ python create_examples.py
This will generate an e2 Studio project for each example.
This will generate an e2 Studio project for each example.
### Excluded Examples
The a2dp examples (a2dp_source_demo and a2dp_sink_demo) were disabled as the C open-source SBC codec
with compile option -O2 wasn't fast enough to provide real-time encoding/decoding.
## Build, Flash And Run The Examples in e2 Studio
@ -52,7 +57,8 @@ Open the e2 Studio project and press the 'Debug' button. Debug output is only av
## Run Example Project using Ozone
After compiling the project with e2 Studio, the genereated .elf file can be used with Ozone. In Ozone, the debug output is readily available. A .jdebug file is provided in the project folder.
After compiling the project with e2 Studio, the genereated .elf file can be used with Ozone (also e.g. on macOS).
In Ozone, the debug output is readily available in the terminal. A .jdebug file is provided in the project folder.
## Debug output
@ -61,8 +67,9 @@ All debug output is send via SEGGER RTT.
In src/btstack_config.h resp. in example/btstack_config.h of the generated projects, additional debug information can be enabled by uncommenting ENABLE_LOG_INFO.
Also, the full packet log can be enabled in src/port.c The console output can then be converted into .pklg files for OS X PacketLogger or WireShark by running tool/create_packet_log.py
Also, the full packet log can be enabled in src/hal_entry.c by uncommenting the hci_dump_open(NULL, HCI_DUMP_STDOUT) call.
The console output can then be converted into .pklg files by running tool/create_packet_log.py. The .pklg file can be
analyzed with the macOS X PacketLogger or WireShark.
## GATT Database
In BTstack, the GATT Database is defined via the .gatt file in the example folder. The create_examples.py script converts the .gatt files into a corresponding .h for the project. After updating a .gatt file, the .h can be updated manually by running the provided update_gatt_db.sh or update_gatt_db.bat scripts.
@ -75,4 +82,4 @@ Note: In theory, this can be integrated into the e2 Studio/Eclipse project.
## Nice to have
- Allow compilation using Makefile/CMake on macOS
- Allow compilation using Makefile/CMake without the e2 Studio, e.g. on the Mac.

View File

@ -60,7 +60,9 @@ def create_examples(port_folder, suffix):
for file in example_files:
if not file.endswith(".c"):
continue
if file in ['panu_demo.c', 'sco_demo_util.c', 'ant_test.c', 'a2dp_sink_demo.c', 'a2dp_source_demo.c']:
if file in ['panu_demo.c', 'sco_demo_util.c', 'ant_test.c', 'audio_duplex.c', 'mod_player.c']:
continue
if file in ['a2dp_sink_demo.c', 'a2dp_source_demo.c', 'hfp_hf_demo.c', 'hfp_ag_demo.c', 'hsp_hs_demo.c', 'hsp_ag_demo.c']:
continue
example = file[:-2]
@ -85,7 +87,7 @@ def create_examples(port_folder, suffix):
create_folder(src_folder)
# copy files skipping example.c and gatt_streamer_server.h
for file in ['btstack_config.h', 'hal_entry.c']:
for file in ['btstack_config.h', 'hal_entry.c', 'hal_flash_bank_synergy.c', 'hal_flash_bank_synergy.h']:
shutil.copy(project_template + "src/" + file, src_folder)
# copy synergy_gen
@ -100,9 +102,9 @@ def create_examples(port_folder, suffix):
shutil.copy(port_folder + "/" + init_script, src_folder)
# add sco_demo_util.c for audio examples
if example in ['hfp_ag_demo','hfp_hf_demo', 'hsp_ag_demo', 'hsp_hs_demo']:
shutil.copy(examples_embedded + 'sco_demo_util.c', src_folder)
shutil.copy(examples_embedded + 'sco_demo_util.h', src_folder)
# if example in ['hfp_ag_demo','hfp_hf_demo', 'hsp_ag_demo', 'hsp_hs_demo']:
# shutil.copy(examples_embedded + 'sco_demo_util.c', src_folder)
# shutil.copy(examples_embedded + 'sco_demo_util.h', src_folder)
# update project files
for file in ['.project', '.cproject','btstack_example.jdebug']:

View File

@ -159,7 +159,7 @@
</folderInfo>
<sourceEntries>
<entry excluding="micro-ecc/test|tinydir|lwip|segger-rtt/SEGGER_RTT_Syscalls_SES.c|segger-rtt/SEGGER_RTT_Syscalls_KEIL.c|segger-rtt/SEGGER_RTT_Syscalls_IAR.c" flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="3rd-party"/>
<entry excluding=""classic/btstack_link_key_db_static.c|classic/btstack_link_key_db_memory.c|ble/att_db_util.c|mesh" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="btstack-src"/>
<entry excluding="classic/btstack_link_key_db_static.c|classic/btstack_link_key_db_memory.c|ble/att_db_util.c|mesh" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="btstack-src"/>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="cc256x"/>
<entry excluding="btstack_em9304_spi_embedded.c|btstack_audio_embedded.c" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="embedded"/>
<entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>

View File

@ -270,7 +270,8 @@ void hal_entry(void) {
btstack_memory_init();
btstack_run_loop_init(btstack_run_loop_embedded_get_instance());
hci_dump_open( NULL, HCI_DUMP_STDOUT );
// enable HCI logging
// hci_dump_open( NULL, HCI_DUMP_STDOUT );
// init HCI
hci_init(hci_transport_h4_instance(btstack_uart_block_embedded_instance()), (void*) &config);