From shallow to deep, Bluetooth 4.0/BLE protocol stack development strategy (6)

From shallow to deep, Bluetooth 4.0/BLE protocol stack development strategy (6)

This series of tutorials will be combined with TI's CC254x SoC series to explain the development process of Bluetooth 4.0 from the construction of the environment to the development of the Bluetooth 4.0 protocol stack. The tutorial is divided into six parts. This article is the sixth part:

The sixth part of the knowledge points:

Click to browse the next page Section 26 UBL-USB Upgrade

Click to browse the next page Section 27 MT-iBeacon Base Station Using iPhone Air Upgrade

Click to browse the next page Section 28 MT-iBeacon Base Station Implements OAD Air Upgrade on the PC Side

Click to browse the next page Section 29 MT-iBeacon Base Station About the Use of LightBlue Software

Click to browse the next page Section 30 How to use the pass-through function of MT-USBDongle

For an introduction to TI's CC254x chip, you can click on the link below to view:

Mainstream Bluetooth BLE control chip detailed (1): TI CC2540

Recommended in the same series:

From shallow to deep, Bluetooth 4.0/BLE protocol stack development strategy (1)

From shallow to deep, Bluetooth 4.0/BLE protocol stack development strategy (2)

From shallow to deep, Bluetooth 4.0/BLE protocol stack development strategy (3)

From shallow to deep, Bluetooth 4.0/BLE protocol stack development strategy (4)

From shallow to deep, Bluetooth 4.0/BLE protocol stack development strategy (5)

For the download of the tool for this article, you can go to the following address:

Zhu Zhaoyu ForARM

Section 26 UBL-USB Upgrade

The UBL upgrade is upgraded using the USB function, and its configuration is the same.

Configuring UBL

(1) Open IAR, open the project C:\Texas Instruments\BLE-CC254x-1.4.0\Projects\ble\uTIl\UBL\soc_8051\usb_msd\iar \ubl.eww under BLE-CC254x-1.4.0, select CC2540-Nano.

Deep into the depths, Bluetooth 4.0 / BLE protocol stack development strategy (6)

(2) A little change here, because the UBL provided by TI is using P2.0 pull-up D+, and our development board is pulled up by the transistor using P0.4, so we need to modify the pull-up pin here.

Deep into the depths, Bluetooth 4.0 / BLE protocol stack development strategy (6)

(3) Compile and download, connect the development board to the computer with MiniUSB, you can see that a U disk is inserted. One thing to note here is that on the Win8 system, it seems that there is a problem with the U disk, which requires Win7 support.

Configuring upgrade firmware

The configuration of the upgrade firmware is almost the same as that of the SBL. There are mainly two different places that need to be changed.

(1) Add a macro

OAD_KEEP_NV_PAGES

FEATURE_UBL_MSD

Deep into the depths, Bluetooth 4.0 / BLE protocol stack development strategy (6)

(2) Configure Config

Deep into the depths, Bluetooth 4.0 / BLE protocol stack development strategy (6)

(3) Build option

Deep into the depths, Bluetooth 4.0 / BLE protocol stack development strategy (6)

(4) can be seen after compilation

Deep into the depths, Bluetooth 4.0 / BLE protocol stack development strategy (6)

(5) Firmware upgrade

The upgrade method is very simple, just copy the generated Bin file to the U disk.

Battery Inverter

ups inverter for home,10kw off grid invertergrid tie solar inverter,hybrid solar inverter,hybrid solar power inverter,solar power inverter for home

EMoreShare International Trade (Suzhou) Co., Ltd , https://www.emoreshare.com