Configuring Device Bootloader

Bootloader is a program that resides in the microcontroller memory and is executed after every device reset or power-up. It first verifies if a new code should be loaded into the flash memory and, if not, it passes a control to the user's application. Besides, it has many other functions, which we do not discuss here. We are going to generate a bootloader that would be compatible with all example projects and has all required features. You need to do only once.

Launch Simplicity Studio, make sure that you are in the Launcher perspective (see the top row in the left image below), click on the adapter in Debug Adapters window on the left and then click Read FW Version. Most likely your development board has an older firmware version loaded, nd if it is the case, update it with the most recent one (see the right image).

   

Next step (shown on the grey background here) is optional and would be only needed when something goes wrong. You may skip it for now.

Click on the Tools icon in the Simplicity IDE perspective (left image) select Simplicity Commander, and click OK (see the right image).

   

In the Simplicity Commander window connect it to the adapter, then to the target microcontroller. Next, click the Flash icon on the left, and, finally, Erase Chip button.

Now you are ready to create a bootloader project by clicking Create New Project button (left image). In the popped-up window check Bootloader box on the left and select the bootloader as shown in the right image. It is very important to select exactly this bootloader project. Click Next, then FINISH and wait for the project to be created in the IDE.

   

Once the project is created click the Generate button and when it is over, click the hammer button to build it.

When the project image is created you get Binaries folder in the Project Explorer. Last step is to load the project image on your development board. For this expand the Binaries folder and right-click on the hex image. In the popped-up window clock on Flash to Device link at the bottom and then click Program in the Flash Programmer window.

       

If no problems are reported by the IDE you are done. Otherwise, scroll up to the skipped section with the gray background and repeat the procedure from there.

Here is a link to configured and compiled Bootloader project.