Last Updated on : 2024-06-14 18:56:53download
BK3431Q supports firmware flashing through SPI or UART.
BK3431Q firmware consists of three parts: boot, stack, and app.
bk3435_ble_app_merge_crc.bin
is a binary after merging the boot, stack, and app. It can be flashed to the chip through SPI only.bk3435_ble_app_oad.bin
is the binary of the application. It can be flashed to the chip through UART.bk3435_ble_app_stack_oad.bin
is the binary of the stack and app. It can be flashed to the chip through UART.Hardware
BEKEN SPI flasher
You can purchase the flasher from the chip vendor or contact your account manager.
Programmer
Procedure
Connect wires (SW SPI) as shown below.
BEKEN SPI flasher | MOSI | MISO | P2.4 | P2.3 | GND | VPP | VCC | CS | WP |
---|---|---|---|---|---|---|---|---|---|
BK3431Q pin | P04 | P05 | P02 | P06 | GND | RST | +3V | P07 | P03 |
If you use BEKEN’s development board, you can plug it directly into the computer without wiring.
Download BEKEN’s HID Download Tool to flash the firmware.
Open HID Download Tool, choose Download Mode > Port Select > SPI SOFT Software.
After selecting the firmware file and COM port, click Download Flash.
The location and name of the firmware.
Check the information output from UART2.
After the firmware is flashed, disconnect the BEKEN SPI flasher from BK3431Q.
Connect BK3431Q to the computer using a USB to TTL converter.
Press the reset button to reset BK3431Q.
If information is output from the serial port, it means the firmware runs properly.
You can output logs through UART2, at 115200 baud. TY_LOG_ENABLE
and TUYA_APP_LOG_ENABLE
are used to enable/disable logging, which is disabled by default.
Software
Beken Writer
Hardware
USB to UART converter with a CH340 chip.
Connect wires as shown below.
USB to UART converter | VCC | GND | RX | TX |
---|---|---|---|---|
BK3431Q pin | +3V | GND | UART_TX | UART_RX |
Select the COM port, which should not exceed 10. If it exceeds, modify it in the device manager.
Select the firmware to download.
Click Flash to download firmware.
When the software shows success status, it indicates download is finished.
Then, the board can scan for advertising packets.
The location and name of the firmware.
For more information, see Authorize Bluetooth LE Series Modules.
Connect UART1 on the chip to a USB to TTL converter.
Open Cloud Module Burning Authorization Platform, and enable Only Auth.
If you use UART2 for authorization, ensure that you set the baud and UART on the software according to the code.
ty_uart_init(); //9600
ty_uart2_init(); //115200
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback