posix-h4-bcm: download firmware at higher speed

This commit is contained in:
Matthias Ringwald 2023-04-20 11:21:43 +02:00
parent 8624321456
commit 36e2ff5e99
2 changed files with 12 additions and 5 deletions

View File

@ -3,7 +3,7 @@
## Configuration
Newer Infineon Airoc (tm) Controllers like the CYW5557x series accept PatchRAM upload only in a so-called
'auto-baud mode' which is entered by asserting CTS (low) and starting/resetting the controller via BT_REG_EN.
This port currently only supports the CYW5557x Controllers and slowly uploads the firmware at 115200.
This port currently only supports the CYW5557x Controllers.
## Compilation
@ -27,10 +27,15 @@ On start, BTstack opens the serial port, which asserts CTS, and requests you to
2
1
Firmware download started
Local version information:
- HCI Version 0x000a
- HCI Revision 0x0b73
- LMP Version 0x000a
- LMP Subversion 0x2257
- Manufacturer 0x0009
Phase 2: Main app
...
BTstack up and running at 55:56:0A:0A:76:93
...
## ToDo
- increase baud rate for firmware upload
- query controller to select correct PatchRAM file
- select PatchRAM file based on HCI Read Local Version Information

View File

@ -79,6 +79,8 @@ static char tlv_db_path[100];
static const btstack_tlv_t * tlv_impl;
static btstack_tlv_posix_t tlv_context;
static const uint32_t baudrate_firmware_download = 921600;
static hci_transport_config_uart_t transport_config = {
HCI_TRANSPORT_CONFIG_UART,
115200,
@ -177,7 +179,7 @@ int main(int argc, const char * argv[]){
const btstack_uart_t * uart_driver = (const btstack_uart_t *) btstack_uart_posix_instance();
// extract UART config from transport config
uart_config.baudrate = transport_config.baudrate_init;
uart_config.baudrate = baudrate_firmware_download;
uart_config.flowcontrol = transport_config.flowcontrol;
uart_config.device_name = transport_config.device_name;
uart_driver->init(&uart_config);