IDE CodeBlocks

The following guide describes the use of the CodeBlocks environment for programming HomeLab Controller Module. This is based on CodeBlocks enviroment, specially adapted for Homelab with a set of packaged software and accessories. Modified CodeBlocks enviroment are downloadable website

Creating a new project

To create the new project, select in menu File→New→Project. There should be selected a project template according to HomeLab generation and configure it as desired. When HomeLab project template is used, then the values are already filled, and there is no need to change anything around. The following example dialog boxes are based on the Robotics HomeLab III. After choosing a right version of HomeLab generation then enter the project name and set the location to save the file (it is preferable to avoid the use of umlauts). Then you can set the project compiling folder and in the next window, enter microcontroller parameters.

 

Using CodeBlocks

Once the project is created, then the new project appears in the left tree with the main.c file, which includes existing simple example code. To compile press the gear icon in the toolbar or by pressing F7. If the compilation succeeds then in the bottom Build Log window the user program memory count are displayed or if not, then error messages in the event of failure.

When loading the program into the microcontroller, in case HomeLab III, first should be entered into the bootloader by holding down the button S0 on the Controller module and at the same time pressing the reset button to restart. When the blue LED lights up, then the Controller is ready for downloading a new program. In previous HomeLabs a bootloader mode is not available. Compiled program can be downloaded to the controller from the Tools menu by choosing the right HomeLab programmer. In the case of HomeLab III choose HomeLab III or CTRL+F7.

en/examples/setup/codeblocks.txt · Last modified: 2023/09/20 13:52 by raivo.sell
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0