Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:examples:setup:codeblocksmanual [2015/03/23 17:48] heikopikneren:examples:setup:codeblocksmanual [2020/07/20 09:00] (current) – external edit 127.0.0.1
Line 69: Line 69:
 {{  :et:examples:setup:codeblocks:9_cb_tool2.png?400  |}} {{  :et:examples:setup:codeblocks:9_cb_tool2.png?400  |}}
  
-===== Linux/Ubuntu seadistamine =====+===== Linux/Ubuntu setup=====
  
-Paigaldada Codeblocks lisad:+Install Codeblocks extras:
   sudo apt-get install codeblocks-contrib   sudo apt-get install codeblocks-contrib
  
-dfu-programmer-i tavakasutaja õigustes käivitamiseks on vaja luua udev reeglite fail +To run dfu-programmer with a normal user privileges, create under /etc/udev/ folder a ruled.d file with following content:
-Genereerida ruled.d kataloogi fail sisuga:+
 <code> <code>
 SUBSYSTEM=="usb",ACTION=="add",ATTRS{idVendor}=="03eb",ATTRS{idProduct}=="*",GROUP="plugdev" SUBSYSTEM=="usb",ACTION=="add",ATTRS{idVendor}=="03eb",ATTRS{idProduct}=="*",GROUP="plugdev"
 </code> </code>
-Samuti on vaja paigaldada teek+It is also necessary to install the library
-Tüüpiliselt asuvad avr-i teegid kausta /usr/lib/avr +Typically AVR libraries are located in the folder /usr/lib/avr 
-Sinna kausta uute teekide lisamiseks on vaja administraatori õigusi.+It is necessary to own administrator rights to add a folder for the new library.
  
-Juhul kui AVR Toolchain ei ole repositooriumites veel uuendatudsiis võib ADC funktsioon anda veateateSelle ellimineerimiseks võib käsitsi asendada avr kaustas oleva iox128a1u.h faili (sisaldub teegis).+If the AVR Toolchain repositorys not yet been updatedyou may receive an error message for ADC functionTo correct this replace manually in the avr folder iox128a1u.h file (included in the library).
  
-Programmeerimise lihtsustamiseks võib luua järgmise batch faili:+To make programming simpler create a following batch file:
   sudo nano /usr/bin/homelab-programmer   sudo nano /usr/bin/homelab-programmer
      
-faili sisuks kopeerida:+copy the content of the file:
 <code> <code>
 #!/bin/bash #!/bin/bash
Line 96: Line 95:
 </code> </code>
  
-loodud failile anda käivitamise õigused:+crant execution permission:
  
   sudo chmod 775 /usr/bin/homelab-programmer   sudo chmod 775 /usr/bin/homelab-programmer
  
 Codeblocks //Tools->Configure tools ...// Codeblocks //Tools->Configure tools ...//
-Seadistada programmaator järgmiselt.+Set the programmer is as follows.
 {{ :et:examples:setup:codeblocks:codeblokcs_programmer_linux.png?400 |}} {{ :et:examples:setup:codeblocks:codeblokcs_programmer_linux.png?400 |}}
  
-Lisada projekti teegi tugi+Add library support
 //Settings -> Compiler ...// //Settings -> Compiler ...//
 {{ :et:examples:setup:codeblocks:compiler_path.png?400 |}} {{ :et:examples:setup:codeblocks:compiler_path.png?400 |}}
Line 111: Line 110:
  
  
-===== CodeBlocks projekti loomine ===== +===== CodeBlocks creating a project ===== 
-Projekti loomine käib menüüst //File->New->Project//Sealt tuleks valida vastavalt Kodulabori versioonile projekt ning konfigureerida see vastavalt soovile.+Go to menu //File->New->Project//There should be selected a project according to HomeLab version and configure it as desired.
  
-Kõigepealt valida projektile nimi ning asukoht. **Vältida täpitähtede kasutamist.**+First, choose the name and location of the project. **Avoid the use of umlauts.**
 {{ :et:examples:setup:codeblocks:10_project1.png?400  |}} {{ :et:examples:setup:codeblocks:10_project1.png?400  |}}
-Seejärel valida projekti kompileerimiskaustSoovitatav jätta selleks, mis on.+Then select the project compiling folderIt is recommended to not change it.
 {{ :et:examples:setup:codeblocks:11_project2.png?400  |}} {{ :et:examples:setup:codeblocks:11_project2.png?400  |}}
-Seejärel valida mikrokontroller ning kasutatav taktsagedus.+Then choose a microcontroller and used frequency.
 {{ :et:examples:setup:codeblocks:12_cb_project3.png?400  |}} {{ :et:examples:setup:codeblocks:12_cb_project3.png?400  |}}
-Viimaseks tuleks määrata ära //AVR Toolchain//i installatsioonikataloog.+Lastly, //AVR Toolchain// installation folder should be set.
 {{ :et:examples:setup:codeblocks:13_cb_project4.png?400  |}} {{ :et:examples:setup:codeblocks:13_cb_project4.png?400  |}}
  
-===== CodeBlocks kasutamine ===== +===== Using the CodeBlocks ===== 
-Kui projekt on loodudilmub vasakule projektipuusse uus projekt koos näitekoodigaKompileerimine käib CodeBlocksis ülal real olevate hammasratta ikoonidegaKui kompilatsioon õnnestub kuvatakse all //Build Log// aknas kasutatud programmimälu maht ning ebaõnnestumise korral errorid.+Once the project is createdthen the new project appears in the left tree with example codeTo compile press the gear icon in the toolbarIf 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. 
 {{ :et:examples:setup:codeblocks:14_cb_compile.png?400  |}} {{ :et:examples:setup:codeblocks:14_cb_compile.png?400  |}}
-Programmi peale laadimisekstuleb Kodulabor III kontrolleril käivitada buudilaadur hoides all S0 nuppu ja tehes kontrollerile reset. Varasemate Kodulaboritega seda teha vaja ei oleKui vajalikud draiverid on paigaldatud (Draiverid asuvad CodeBlocks/Programmer kaustas), siis saab kompileeritud hex faili peale laadidaSelleks tuleb käivitada programmaator menüüst //Tools//+When loading the program into the microcontrollerin 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, press the reset button to restartIn previous HomeLabs a bootloader mode is not availableIf all the necessary drivers are installed (drivers are in CodeBlocks / Programmer folder), then can be download compiled hex fileTo start programmer, go to //Tools// menu.
  
 {{ :et:examples:setup:codeblocks:15_cb_programming.png?400  |}} {{ :et:examples:setup:codeblocks:15_cb_programming.png?400  |}}
en/examples/setup/codeblocksmanual.1427132928.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
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