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 18:16] – heikopikner | en:examples:setup:codeblocksmanual [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 74: | Line 74: | ||
sudo apt-get install codeblocks-contrib | sudo apt-get install codeblocks-contrib | ||
- | To run dfu-programmer with a normal user privileges, create udev rules file. | + | To run dfu-programmer with a normal user privileges, create |
- | Generate | + | |
< | < | ||
SUBSYSTEM==" | SUBSYSTEM==" | ||
Line 82: | Line 81: | ||
Typically AVR libraries are located in the folder / | Typically AVR libraries are located in the folder / | ||
It is necessary to own administrator rights to add a folder for the new library. | It is necessary to own administrator rights to add a folder for the new library. | ||
- | |||
- | Juhul kui AVR Toolchain ei ole repositooriumites veel uuendatud, siis võib ADC funktsioon anda veateate. Selle ellimineerimiseks võib käsitsi asendada avr kaustas oleva iox128a1u.h faili (sisaldub teegis). | ||
If the AVR Toolchain repositorys not yet been updated, you may receive an error message for ADC function. To correct this replace manually in the avr folder iox128a1u.h file (included in the library). | If the AVR Toolchain repositorys not yet been updated, you may receive an error message for ADC function. To correct this replace manually in the avr folder iox128a1u.h file (included in the library). | ||
Line 122: | Line 119: | ||
Then choose a microcontroller and used frequency. | Then choose a microcontroller and used frequency. | ||
{{ : | {{ : | ||
- | Lastly, | + | Lastly, //AVR Toolchain// installation folder |
{{ : | {{ : | ||
===== Using the 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 |
{{ : | {{ : |