[Silicon Labs BG22-EK4108A Bluetooth Development Evaluation] Burn Bootloader + Debug Bluetooth Lighting
[Copy link]
【Silicon Labs BG22-EK4108A 蓝牙开发评测】烧录Bootloader+调试蓝牙点灯.pdf
(2.39 MB, downloads: 6)
Source code of this article
soc_blinky.zip
(4.29 MB, downloads: 4)
PCB schematic diagram
BRD4108A-A03-pkg.zip
(2.9 MB, downloads: 3)
I would like to thank Electronic Engineering World ( EEWORLD ) and Silicon Labs & Arrow for the opportunity.
Bluetooth lighting is a mobile phone APP that controls the state of the LED light of the development board through Bluetooth communication . It can also receive the development board button to control the state of the mobile phone APP simulated light. Bluetooth lighting is the most basic Bluetooth function display. The operation of Bluetooth firmware requires the development board to pre-burn Bootloader , and Bootloader boots the user Bluetooth firmware program. The burned Bootloader firmware can be obtained through various ways. This article burns Bootloader through the Demo program provided by SDK .
This article requires you to first complete the content of " 【Silicon Labs BG22-EK4108A Bluetooth Development Evaluation】Schematic Diagram + Building Development Environment + Debugging and Lighting ".
1. Install the EFR Connect APP on your phone
Search and install the EFR Connect APP in the APP store .
In the " Demo " tab, you will see the " Blinky " demonstration, which you can use for testing later.
2. Burn Bootloader
Open Simplicity Studio and log in, then connect the BG22 development board . Simplicity Studio automatically recognizes the development board and clicks the “ Start ” button.
Select the " Bluetooth " filter in " EXAMPLE PROJECTS & DEMOS " and click " RUN " in " Demo Bluetooth - SOC Blinky " to start burning the Bootloader , as shown below.
“ Demo Bluetooth – SOC Blinky ” will burn both the Bootloader and the demo firmware at the same time.
3. Create a Bluetooth SoC Blinky Project
Select the " Bluetooth " filter in " EXAMPLE PROJECTS & DEMOS " and click " CREATE " in " Bluetooth - SOC Blinky " to create a new project, as shown below.
You can specify another project directory. Selecting " Copy contents " means copying all required files from the SDK to the local project, which can prevent the original files of the SDK from being modified . As shown below:
The " Bluetooth - SOC Blinky " project is successfully created and the readme file is automatically displayed . As shown below:
Double-click " soc_blinky.pintool " to see the configuration of GPIO and peripherals in this project:
Check the schematic diagram of the development board, LED0 is connected to PA04 of the MCU , BUTTON0 is connected to PC07 of the MCU , as shown in the following figure:
4. Debug the Bluetooth SoC Blinky program
Right click on the Bluetooth SoC Blinky project folder and select “ Build configurations->Build All ” to compile the project:
Compilation completed successfully :
Right click on the Bluetooth SoC Blinky project folder and select “ Debug As->1 Silicon Labs ARM Program ” to start debugging:
Click " Yes " to ignore a warning:
Click the green arrow icon to start debugging:
Open the EFR Connect APP on your phone and make sure the permissions required by the APP are allowed :
In the " Demo->Blinky " demonstration of the APP , you can control the switch of LED0 of the development board , and BUTTON0 of the development board can control the switch of the demonstration light of the mobile phone APP , as shown in the following figure:
Click the red square icon to stop debugging:
5. Summary
This article first burns the Bootloader required for testing the Bluetooth program , and then gives details on how to create a Bluetooth SoC Blinky project, compile and start debugging, and test it through the EFR Connect APP on a mobile phone .
|