This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:examples:setup:codeblocksmanual [2015/03/23 17:48] – heikopikner | en:examples:setup:codeblocksmanual [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 69: | Line 69: | ||
{{ : | {{ : | ||
- | ===== Linux/ | + | ===== Linux/ |
- | Paigaldada | + | Install |
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 |
- | Genereerida | + | |
< | < | ||
SUBSYSTEM==" | SUBSYSTEM==" | ||
</ | </ | ||
- | Samuti on vaja paigaldada teek. | + | It is also necessary to install the library. |
- | Tüüpiliselt asuvad avr-i teegid kausta | + | Typically AVR libraries are located in the folder |
- | 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 | + | If the AVR Toolchain |
- | Programmeerimise lihtsustamiseks võib luua järgmise | + | To make programming simpler create a following |
sudo nano / | sudo nano / | ||
| | ||
- | faili sisuks kopeerida: | + | copy the content of the file: |
< | < | ||
#!/bin/bash | #!/bin/bash | ||
Line 96: | Line 95: | ||
</ | </ | ||
- | loodud failile anda käivitamise õigused: | + | crant execution permission: |
sudo chmod 775 / | sudo chmod 775 / | ||
Codeblocks // | Codeblocks // | ||
- | Seadistada programmaator järgmiselt. | + | Set the programmer is as follows. |
{{ : | {{ : | ||
- | Lisada projekti teegi tugi | + | Add library support |
//Settings -> Compiler ...// | //Settings -> Compiler ...// | ||
{{ : | {{ : | ||
Line 111: | Line 110: | ||
- | ===== CodeBlocks | + | ===== CodeBlocks |
- | Projekti loomine käib menüüst | + | Go to menu // |
- | 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.** |
{{ : | {{ : | ||
- | Seejärel valida projekti kompileerimiskaust. Soovitatav jätta selleks, mis on. | + | Then select the project compiling folder. It is recommended to not change it. |
{{ : | {{ : | ||
- | Seejärel valida mikrokontroller ning kasutatav taktsagedus. | + | Then choose a microcontroller and used frequency. |
{{ : | {{ : | ||
- | Viimaseks tuleks määrata ära //AVR Toolchain//i installatsioonikataloog. | + | Lastly, |
{{ : | {{ : | ||
- | ===== CodeBlocks | + | ===== Using the CodeBlocks ===== |
- | Kui projekt on loodud, ilmub vasakule projektipuusse uus projekt koos näitekoodiga. Kompileerimine käib CodeBlocksis ülal real olevate hammasratta ikoonidega. Kui kompilatsioon õnnestub kuvatakse all //Build Log// aknas kasutatud programmimälu maht ning ebaõnnestumise korral errorid. | + | Once the project is created, then the new project appears in the left tree with example code. To compile press the gear icon in the toolbar. If the compilation succeeds then in the bottom |
{{ : | {{ : | ||
- | Programmi peale laadimiseks, tuleb Kodulabor | + | When loading the program into the microcontroller, in case HomeLab |
{{ : | {{ : |