btstack/port/pic32-harmony
2018-04-19 18:04:43 +02:00
..
app.X pic32-harmony: added btstack_crypto.c 2018-04-19 18:04:43 +02:00
src add le_data_channel examples to most ports 2018-01-19 16:32:28 +01:00
create_examples.py pic32-harmony: more path rewrites to fix command line compile of generated examples 2018-01-04 21:15:06 +01:00
README.md docs: move parts from quick start into port readme file for pic32 and windows-winusb 2017-12-22 23:54:43 +01:00
setup-bluetooth-audio-devkit.jpg

BTstack Port for the Microchip PIC32 Harmony Platform

Status: All examples working, polling UART driver. Tested on Bluetooth Audio Development Kit only. Created with Harmony v1.07, does not compile with new v2.x versions.

Hardware

The PIC32 Bluetooth Audio Development Kit comes with the CSR8811-based BTM805 Bluetooth module. In the port, the UART on the DAC daughter board was used for the debug output. Please remove the DAC board and connect a 3.3V USB-2-UART converter to GND and TX to get the debug output.

Software

Microchip MPLAB X IDE and the MPLAB XC32 compiler needs to be installed.

Setup

  • Place BTstack tree into harmony/framework folder.
  • Run port/pic32-harmony/create_examples.py to create examples in harmony/apps/btstack folder.

Usage

The examples can be opened and compiled in Microchip MPLAB X IDE or from the command line using the Makefile generated by it.

Modifications to the GATT Database

After changing the GATT definition in $example.gatt, please run ./update_gatt_db.h to regenerate example.h in the $example folder.

Compiler Warnings:

The project is set to use -Os optimization which will cause warnings if you only have the Free version. It will still compile a working example.