| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| en:examples:setup:linux [2010/04/08 19:30] – Helen | en:examples:setup:linux [2020/07/20 09:00] (current) – created - external edit 127.0.0.1 |
|---|
| sudo apt-get install gcc-avr avrdude avr-libc | sudo apt-get install gcc-avr avrdude avr-libc |
| |
| or graphical installation software (such as Ubuntu software center or Synaptic packetmanager). | or graphical installation software (such as Ubuntu software center or Synaptic packet manager). |
| |
| **2. Homelab library** | **2. HomeLab library** |
| |
| The library simplifies the writing of program code, since lower-level functions are ready-made. Visit the Homelab website and download the file named //Homeland library vX.X.run//, where XX represents the version number. Run the following command to install the library: | The library simplifies the writing of program code, since lower-level functions are ready-made. Visit the HomeLab website and download the file named //Homelab library vX.X.run//, where XX represents the version number. Run the following command to install the library: |
| |
| sudo sh homelab_library_vX.X.run | sudo sh homelab_library_vX.X.run |
| {{ :kit:005_new_file_kontrollerlab.png?500 |}} | {{ :kit:005_new_file_kontrollerlab.png?500 |}} |
| |
| **3.** Next, the project must be configured for Homelab kit. From the //Project -> Configure Project// menu open the configurations window and select //Common// tab. CPU type should be ATmega128 and the clock should be 14745600,0 Hz. Also the names of the HEX and MAP files should be specified. Pressing a //Set as default// button makes these configurations as a default for new projects. This is reasonable when working only with Homelab AVR microcontroller. As the HEX and MAP files are also stored as a default it is recommended to use some general name for them, for example "out.hex". | **3.** Next, the project must be configured for HomeLab kit. From the //Project -> Configure Project// menu open the configurations window and select //Common// tab. CPU type should be ATmega128 and the clock should be 14745600,0 Hz. Also the names of the HEX and MAP files should be specified. Pressing a //Set as default// button makes these configurations as a default for new projects. This is reasonable when working only with HomeLab AVR microcontroller. As the HEX and MAP files are also stored as a default it is recommended to use some general name for them, for example "out.hex". |
| |
| NB! As the Homelab library can not be added on the //Linker// configuration tab, the command "-lhomelab" must be added behind the name of the MAP file. | NB! As the HomeLab library can not be added on the //Linker// configuration tab, the command "-lhomelab" must be added behind the name of the MAP file. |
| |
| {{ :kit:006_project_conf_common.png?500 |}} | {{ :kit:006_project_conf_common.png?500 |}} |