C 8 0 5 1 F 4 11 - E K
8
Rev. 0.1
6.2.2. Building and Downloading the Program for Debugging
1. Once all source files have been added to the target build, build the project by clicking on the Build/MakeProject
button in the toolbar or selecting Project->Build/Make Project from the menu.Note: After the project has been
built the first time, the Build/Make Project command will only build the files that have been changed since the
previous build. To rebuild all files and project dependencies, click on the Rebuild All button in the toolbar or
select Project->Rebuild All from the menu.
2. Before connecting to the target device, several connection options may need to be set. Open theConnection
Options window by selecting Options->Connection Options... in the IDE menu. First, selectthe adapter that was
included with the kit in the “Serial Adapter” section. Next, the correct “Debug Interface”must be selected.
C8051F41x family devices use the Silicon Labs 2-wire (C2) debug interface. Once all theselections are made,
click the OK button to close the window.
3. Click the Connect button in the toolbar or select Debug->Connect from the menu to connect to the device.
4. Download the project to the target by clicking the Download Code button in the toolbar.Note: To enable
automatic downloading if the program build is successful select Enable automatic con-nect/download after build
in the Project->Target Build Configuration dialog. If errors occur during the build process, the IDE will not
attempt the download.
5. Save the project when finished with the debug session to preserve the current target build configuration,editor
settings and the location of all open debug views. To save the project, select Project->Save ProjectAs... from
the menu. Create a new name for the project and click on Save.
6.2.3. Downloading the C8051F411 Evaluation Board Demonstration Firmware
To download the demonstration code to the C8051F411 evaluation board, follow steps 2 and 3 in “6.2.2. Building
and Downloading the Program for Debugging”. The demonstration code can be found in
C:Silabs\MCU\Demos\C8051F411EK\F411EK_DEMO.hex by default.