Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

How to download general ROM patch in BTSDK platforms

How to download general ROM patch in BTSDK platforms

DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Many of us wanted to interact with the BT controller over HCI interface from an external host while developing an application or debugging/testing the controller. One classic example is, when performing RF regulatory testing on the BT controller.  Before using the controller, we should ensure that the latest patches for the controller (ROM code) is present in the chip. The patches to ROM code will modify its behaviour and fix bugs. There are two methods to download the latest patch to your chip which I have explained below. To explain the it I have taken CYW20719 chip as an example and the SDK version is BTSDK v3.1.

Method 1 - Download the general patch using CyBluetool.

  1. Get the latest patch file (patch.cgs) from internal patch folder. 
    In github,  patch.cgs is located in,
    https://github.com/Infineon/20719B2/blob/master/COMPONENT_20719B2/internal/20719B2/patches/patch.cgs 
    In SDK, patch.cgs is located in,
    /mtb_shared/wiced_btsdk/dev-kit/baselib/20719B2/release-v3.1.0/COMPONENT_20719B2/internal/20719B2/patches/patch.cgs 
  2. Get the 20719_OCF.btp (or suitalbe .btp file for your platform) file from platform file of CYW20719. This .btp file contains the device preset for the 20719 serial flash which will be used by the build/download tool.
    In github, it is located in,
    https://github.com/Infineon/20719B2/blob/master/COMPONENT_20719B2/platforms/20719_OCF.btp 
    In SDK, it is located in, 
    /mtb_shared/wiced_btsdk/dev-kit/baselib/20719B2/release-v3.1.0/COMPONENT_20719B2/platforms/20719_OCF.btp
  3. To download the patch, we can use CyBluetool. From the CyBlueTool Tools menu, select Firmware Download. In the Firmware Download window, Select correct HCI UART COM port, baudrate, .btp file, .cfg file, etc as shown below and Click Download. Tool will return a success message if download is complete.

    Capture1.JPG


Method 2 - Download an empty application from the SDK and get the patches along with it
1) Get the latest Modustoolbox IDE from  https://www.cypress.com/products/modustoolbox 
2) Import a empty btsdk application for your platform (CYW20719), and modify the source file (.c) with below code.

#include "sparcommon.h"
APPLICATION_START() {  }

3) Build and program the application to the board. This will download all the required latest patches along with an empty application. 

 

FYI. Listed few useful links below.

https://www.cypress.com/products/modustoolbox

https://community.cypress.com/t5/Public-Archive/CyBluetool-Windows-Installer/m-p/252162#M4213 

 https://community.cypress.com/t5/Knowledge-Base-Articles/RF-Testing-on-Cypress-BT-Devices-KBA228303/... 

0 Likes
835 Views
Authors