xref: /btstack/port/posix-h4-bcm/README.md (revision 893dbb9455d8018c779f7b9fef03fd5098bfe58e)
1*893dbb94SMatthias Ringwald# BTstack Port for POSIX Systems with modern Infineon (CYW) H4 Bluetooth Controller
2*893dbb94SMatthias Ringwald
3*893dbb94SMatthias Ringwald## Configuration
4*893dbb94SMatthias RingwaldNewer Infineon Airoc (tm) Controllers like the CYW5557x series accept PatchRAM upload only in a so-called
5*893dbb94SMatthias Ringwald'auto-baud mode' which is entered by asserting CTS (low) and starting/resetting the controller via BT_REG_EN.
6*893dbb94SMatthias RingwaldThis port currently only supports the CYW5557x Controllers and slowly uploads the firmware at 115200.
7*893dbb94SMatthias Ringwald
8*893dbb94SMatthias Ringwald## Compilation
9*893dbb94SMatthias Ringwald
10*893dbb94SMatthias RingwaldBTstack's posix-h4-bcm port does not have additional dependencies. You can directly run cmake and then your default
11*893dbb94SMatthias Ringwaldbuild system. E.g. with Ninja:
12*893dbb94SMatthias Ringwald
13*893dbb94SMatthias Ringwald	mkdir build
14*893dbb94SMatthias Ringwald    cd build
15*893dbb94SMatthias Ringwald    cmake -G Ninja ..
16*893dbb94SMatthias Ringwald    ninja
17*893dbb94SMatthias Ringwald
18*893dbb94SMatthias Ringwald## Running the examples
19*893dbb94SMatthias Ringwald
20*893dbb94SMatthias RingwaldOn start, BTstack opens the serial port, which asserts CTS, and requests you to reset the Controller with a countdown.
21*893dbb94SMatthias Ringwald
22*893dbb94SMatthias Ringwald	$ ./gatt_counter
23*893dbb94SMatthias Ringwald    Packet Log: /tmp/hci_dump.pklg
24*893dbb94SMatthias Ringwald    Phase 1: Download firmware
25*893dbb94SMatthias Ringwald    Please reset Bluetooth Controller, e.g. via RESET button. Firmware download starts in:
26*893dbb94SMatthias Ringwald    3
27*893dbb94SMatthias Ringwald    2
28*893dbb94SMatthias Ringwald    1
29*893dbb94SMatthias Ringwald    Firmware download started
30*893dbb94SMatthias Ringwald    Phase 2: Main app
31*893dbb94SMatthias Ringwald    ...
32*893dbb94SMatthias Ringwald    BTstack up and running at 55:56:0A:0A:76:93
33*893dbb94SMatthias Ringwald
34*893dbb94SMatthias Ringwald## ToDo
35*893dbb94SMatthias Ringwald- increase baud rate for firmware upload
36*893dbb94SMatthias Ringwald- query controller to select correct PatchRAM file
37