BLE Hands on Getting Started Build and Flash Gecko Bootloader - joe-possum/IoT-Developer-Boot-Camp GitHub Wiki

In this exercise we use Simplicity Studio to build a Gecko Bootloader project and flash it to the device. It will be useful to know the size of the flash on the device from the Using Commander execise.

In the Launcher perspective, select the WSTK and from the "EXAMPLE PROJECTS & DEMOS" tab, filter for Example Projects of Bootloader technology. You should find a number of projects called "Internal Storage Bootloader (single image on XMb/XkB device).

Click the "CREATE" button for the project with the appropriate flash size. This will open a configuration dialog. For our purposes the default settings are fine, click "FINISH" (1).

A dialog will display the progess as the project is created.

Finally the Simplicity IDE perspective is opened with the newly created Gecko Bootloader project. While the GBL has many configuration options, the defaults will be fine. Select the project root in the Project Explorer panel (2). Click the Build icon (3).

A progress dialog will appear (4). The build process can be seen in the console (5).

Once the build hs successfully completed, a new folder will appear in the Project Explorer, Binaries. Here we will see a difference between Series 1 and Series 2 devices. ERROR --- GBL does not appear to generate -combined image for any Series 1 devices.

Right click on one of the encoded images (.s37 or .hex) and select "Flash to Device..."

A dialog for the Flash Programmer will appear. It should be noted that it is not necessary to click the "Erase" (6) button before clicking "Program" (7). As the device is programmed any page to be written will be automatically erased. The "Erase" button will erase all main flash which is sometimes useful, but given that a bootloader needs an application to load, and an application needs a bootloader, only use "Erase" when you really want to start from scratch. Click "Program".

A progress dialog will briefly appear.

The bootloader is now programmed to the device. If you already have an application flashed to the device, it will will be executed by the new bootloader. You could verify this with EFR Connect.

⚠️ **GitHub.com Fallback** ⚠️