I am trying to increase the baud rate of UART between the CC2564MODN and a STM32L4 with Bluetopia stack.
Device Chipset: 4.1
BTPS Version : 184.108.40.206
Project Type : 6
FW Version : 7.41
The vendor specific command VS_Update_UART_Baur_Rate (BTVS.c) is called with the new baud rate (230400 bps) and returns a success. After that, in HCI_VS_InitializeAfterHCIReset (BTPSVEND.c), the HCI_Reconfigure_Driver changes the STM32L4’s baud rate successfully.
However, the next communication with the CC256 fails: DownloadPatch in HCI_VS_InitializeAfterHCIReset fails, probably because of the baud rate change.
In bluetopia’s code, I only changed the define VENDOR_BAUD_RATE to 230400 (in HCITRCFG.h). Do we need to change anything else to update the baud rate? From the datasheet:
The maximum baud rate of the UART module is 4 Mbps; however, the default baud rate after power up is set to 115.2 kbps. The baud rate can thereafter be changed with a VS command. The device responds with a command complete event (still at 115.2 kbps), after which the baud rate change occurs.
The VS command is called, and the baud rate is changed from the MCU perspective, as described.
Some posts suggest updating the BTS file (patch to download) with the new baud rate, but the datasheet does not mention it. What is the correct procedure to change the baud rate?
We have a running BLE application with services and characteristics when the baud rate is kept to 115200 bps, so this seems to be the only problem.