btstack/port/samv71-xplained-atwilc3000
2017-11-09 13:39:04 +01:00
..
ASF
example add btstack_tlv.c to most ports 2017-11-09 13:39:04 +01:00
scripts samv71-xplained-atwilc3000: fix build 2017-08-25 15:51:06 +02:00
asf.h samv71-xplained-atwilc3000: update config for atwilc3000 config 2017-08-08 10:56:22 +02:00
btstack_config.h sm: ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS enables micro-ecc software implementation 2017-08-28 21:10:17 +02:00
conf_board.h samv71-xplained-atwilc3000: fix pin definitions 2017-08-08 10:56:22 +02:00
conf_clock.h
conf_uart_serial.h
main.c samv71-xplained-atwilc3000: provide memory for a2dp, fix main.c file tag, disable hci dump 2017-08-08 18:37:59 +02:00
Makefile samv71-xplained-atwilc3000: fix build 2017-08-25 15:51:06 +02:00
README.md atwilc3000: updated docu and samv70-xplained port 2017-08-10 16:21:53 +02:00

BTstack port for SAMV71 Ultra Xplained with ATWILC3000 SHIELD

This port uses the SAMV71 Ultra Xplained Ultra evaluation kit with an ATWILC3000 SHIELD. The code is based on the Advanced Software Framework (ASF) (previously know as Atmel Software Framework). It uses the GCC Makefiles provided by the ASF. OpenOCD is used to upload the firmware to the device.

Create Example Projects

To create all example projects in the example folder, you can run:

$ make

Compile Example

In one of the example folders:

$ make

To upload the firmware:

$ make

You need to connect the the Debug USB to your computer.

Debug output

printf is routed to USART1, which is connected to the virtual serial port. To get the console output, open a terminal at 115200.

In btstack_config.h, additional debug information can be enabled by uncommenting ENABLE_LOG_INFO.

Also, the full packet log can be enabled in the main() function on main.c by uncommenting the hci_dump_open(..) line. The console output can then be converted into .pklg files for OS X PacketLogger or WireShark by running tool/create_packet_log.py

TODOs

- Implement hal_flash_sector.h to persist link keys
- Implement hal_audio_dma.h for A2DP Audio Sink and HFP/HSP Demos
- Figure out if/how SCO packets can be routed over HCI for HFP wide-band speech

Issues

- Bluetooth UART driver uses per-byte interrupts and doesn't work reliable at higher baud rates (921600 seems ok, 2 mbps already causes problems).
- An older XDMA-based implementation only sends 0x00 bytes over the UART. It might be better to just read incoming data into two buffers, (e.g. using a two element linked list with XDMA), and raising RTS when one buffer is full.