SOP 002-Environnement informatique » Historique » Version 85
  Patrice Nadeau, 2018-03-24 17:44 
  
| 1 | 85 | Patrice Nadeau | # SOP 002-Environnement informatique  | 
|---|---|---|---|
| 2 | 1 | Patrice Nadeau | |
| 3 | Ce SOP explique comment configurer un poste pour  | 
||
| 4 | * la programmation (C)  | 
||
| 5 | 3 | Patrice Nadeau | * le désign de circuits électroniques  | 
| 6 | 1 | Patrice Nadeau | > Pour l’instant, seulement un environnement GNU\Linux (openSUSE) est documenté.  | 
| 7 | |||
| 8 | {{lastupdated_at}} {{lastupdated_by}} | 
||
| 9 | |||
| 10 | ---  | 
||
| 11 | |||
| 12 | {{toc}} | 
||
| 13 | |||
| 14 | 85 | Patrice Nadeau | ## Matériel  | 
| 15 | 1 | Patrice Nadeau | |
| 16 | 85 | Patrice Nadeau | ### Ordinateur  | 
| 17 | 1 | Patrice Nadeau | |
| 18 | * Processeur  | 
||
| 19 | 36 | Patrice Nadeau | ** 64 bits  | 
| 20 | 1 | Patrice Nadeau | * Mémoire  | 
| 21 | ** 2 Mo  | 
||
| 22 | * Disque  | 
||
| 23 | * Port série ou convertisseur USB/série (communication série et programmeur AVR)  | 
||
| 24 | * Port USB 2.0 ou plus (sonde Logic et programmeur AVR)  | 
||
| 25 | |||
| 26 | |||
| 27 | 85 | Patrice Nadeau | ### Écran  | 
| 28 | 1 | Patrice Nadeau | |
| 29 | * Résolution minimal de 1690x900 (VIM 2 x 80 colonnes + taglist)  | 
||
| 30 | ** 1 minimum, 2 fortement recommandés  | 
||
| 31 | |||
| 32 | 85 | Patrice Nadeau | ### Programmeur  | 
| 33 | 1 | Patrice Nadeau | |
| 34 | Pour le transfert des programmes vers les uC AVR.  | 
||
| 35 | |||
| 36 | Les programmeur suivants ont été testés :  | 
||
| 37 | * Atmel STK500  | 
||
| 38 | * Atmel STK600  | 
||
| 39 | * Atmel AVRISP mkII  | 
||
| 40 | |||
| 41 | 85 | Patrice Nadeau | ## Logiciels  | 
| 42 | 1 | Patrice Nadeau | |
| 43 | 85 | Patrice Nadeau | ### Système d'exploitation  | 
| 44 | 1 | Patrice Nadeau | |
| 45 | 73 | Patrice Nadeau | openSUSE Leap 42.3 avec interface graphique  | 
| 46 | 1 | Patrice Nadeau | |
| 47 | 85 | Patrice Nadeau | ### Navigateur Web  | 
| 48 | 1 | Patrice Nadeau | |
| 49 | Pour l’accès à Redmine  | 
||
| 50 | |||
| 51 | 85 | Patrice Nadeau | #### Firefox  | 
| 52 | 1 | Patrice Nadeau | |
| 53 | Dictionnaire français  | 
||
| 54 | |||
| 55 | 85 | Patrice Nadeau | ### Suite bureautique  | 
| 56 | 1 | Patrice Nadeau | |
| 57 | LibreOffice  | 
||
| 58 | |||
| 59 | 85 | Patrice Nadeau | ### Autres  | 
| 60 | 1 | Patrice Nadeau | |
| 61 | Document viewer (Evince)  | 
||
| 62 | |||
| 63 | 85 | Patrice Nadeau | ### Éditeur  | 
| 64 | 1 | Patrice Nadeau | |
| 65 | L’éditeur "VIM":http://www.vim.org est utilisé.  | 
||
| 66 | Plusieurs compléments sont installés et une personnalisation est appliquée.  | 
||
| 67 | |||
| 68 | 85 | Patrice Nadeau | sudo zypper install gvim vim-data vim-plugin-a vim-plugin-NERDtree  | 
| 69 | 1 | Patrice Nadeau | |
| 70 | Plugin de http://www.vim.org/  | 
||
| 71 | 85 | Patrice Nadeau | |
| 72 | 1 | Patrice Nadeau | * puppet_syntax  | 
| 73 | * tagbar  | 
||
| 74 | |||
| 75 | Ctags  | 
||
| 76 | |||
| 77 | 85 | Patrice Nadeau | sudo zypper install ctags  | 
| 78 | 1 | Patrice Nadeau | |
| 79 | 85 | Patrice Nadeau | #### Personnalisation  | 
| 80 | |||
| 81 | 1 | Patrice Nadeau | Copier les gabarits  | 
| 82 | > TODO : gabarits Vim  | 
||
| 83 | |||
| 84 | |||
| 85 | 85 | Patrice Nadeau | mkdir ~/Documents/projects  | 
| 86 | ...  | 
||
| 87 | |||
| 88 | 1 | Patrice Nadeau | Créer des liens symboliques pour :  | 
| 89 | |||
| 90 | 85 | Patrice Nadeau | ln -s ~/Documents/projects/vim/vimrc ~/.vimrc  | 
| 91 | ln -s~/Documents/projects/vim/vim ~/.vim  | 
||
| 92 | ln -s~/Documents/projects/vim/ctags ~/.ctags  | 
||
| 93 | |||
| 94 | 1 | Patrice Nadeau | Créer un raccourci pour l’application  | 
| 95 | |||
| 96 | 85 | Patrice Nadeau | gvim –cmd:cd /home/repertoire_projets  | 
| 97 | 15 | Patrice Nadeau | |
| 98 | 85 | Patrice Nadeau | ### Unison  | 
| 99 | |||
| 100 | 1 | Patrice Nadeau | Synchronisation de données  | 
| 101 | |||
| 102 | 85 | Patrice Nadeau | sudo zypper install unison  | 
| 103 | 1 | Patrice Nadeau | |
| 104 | 85 | Patrice Nadeau | ### Minicom  | 
| 105 | |||
| 106 | 16 | Patrice Nadeau | Logiciel de terminal sous GNU/Linux  | 
| 107 | 1 | Patrice Nadeau | |
| 108 | Installation  | 
||
| 109 | |||
| 110 | 85 | Patrice Nadeau | sudo zypper install minicom  | 
| 111 | |||
| 112 | 16 | Patrice Nadeau | Personnalisation  | 
| 113 | 1 | Patrice Nadeau | Ajouter l’utilisateur dans le groupe *dialout*.  | 
| 114 | 85 | Patrice Nadeau | |
| 115 | sudo usermod --groups dialout username  | 
||
| 116 | |||
| 117 | 1 | Patrice Nadeau | L’usager doit se reloguer.  | 
| 118 | |||
| 119 | 85 | Patrice Nadeau | ### XƎTEX  | 
| 120 | 41 | Patrice Nadeau | |
| 121 | 1 | Patrice Nadeau | Installation  | 
| 122 | |||
| 123 | 85 | Patrice Nadeau | sudo zypper install texlive-latex texlive-listing texlive-fancyhdr texlive-graphics texlive-todo texlive-siunitx texlive-beamer texlive-context-fullpage texlive-lastpage texlive-polyglosisa texlive-lstaddons  | 
| 124 | 1 | Patrice Nadeau | |
| 125 | 85 | Patrice Nadeau | ## Programmation  | 
| 126 | |||
| 127 | 1 | Patrice Nadeau | Le langage _C_ est celui utilisé pour les systèmes embarqués.  | 
| 128 | |||
| 129 | 85 | Patrice Nadeau | ### Éditeur  | 
| 130 | 1 | Patrice Nadeau | |
| 131 | Ajouts supplémentaire à VIM  | 
||
| 132 | |||
| 133 | 85 | Patrice Nadeau | ### Compilateur C  | 
| 134 | 1 | Patrice Nadeau | |
| 135 | 85 | Patrice Nadeau | #### gcc  | 
| 136 | 17 | Patrice Nadeau | |
| 137 | 85 | Patrice Nadeau | sudo zypper install gcc make  | 
| 138 | 1 | Patrice Nadeau | |
| 139 | h4. splint  | 
||
| 140 | |||
| 141 | Vérificateur de syntaxe C  | 
||
| 142 | <pre><code class="bash">  | 
||
| 143 | 17 | Patrice Nadeau | sudo zypper install splint  | 
| 144 | 1 | Patrice Nadeau | </code></pre>  | 
| 145 | |||
| 146 | h3. Doxygen  | 
||
| 147 | |||
| 148 | Outil de documentation (C/C++, java)  | 
||
| 149 | |||
| 150 | Installation  | 
||
| 151 | <pre><code class="bash">  | 
||
| 152 | 51 | Patrice Nadeau | sudo zypper install doxygen texlive-latex texlive-xtab texlive-multirow texlive-sectsty texlive-tocsoft  | 
| 153 | 1 | Patrice Nadeau | </code></pre>  | 
| 154 | |||
| 155 | h3. Git  | 
||
| 156 | |||
| 157 | Système de contrôle de version  | 
||
| 158 | |||
| 159 | Installation  | 
||
| 160 | <pre><code class="bash">  | 
||
| 161 | 19 | Patrice Nadeau | sudo zypper install git  | 
| 162 | 1 | Patrice Nadeau | </code></pre>  | 
| 163 | |||
| 164 | h3. Atmel AVR  | 
||
| 165 | |||
| 166 | Pour la programmation des micro-controleur AVR 8 bits d’Atmel.  | 
||
| 167 | |||
| 168 | 83 | Patrice Nadeau | h4. GNU toolchain  | 
| 169 | 59 | Patrice Nadeau | |
| 170 | 78 | Patrice Nadeau | > Version 5.4.0 de avr-gcc  | 
| 171 | 76 | Patrice Nadeau | |
| 172 | <pre><code class="bash">  | 
||
| 173 | sudo zypper addrepo http://download.opensuse.org/repositories/CrossToolchain:avr/openSUSE_Leap_42.3/CrossToolchain:avr.repo  | 
||
| 174 | sudo zypper refresh  | 
||
| 175 | 79 | Patrice Nadeau | sudo zypper install cross-avr-gcc cross-avr-binutils avr-libc  | 
| 176 | 76 | Patrice Nadeau | </code></pre>  | 
| 177 | |||
| 178 | 1 | Patrice Nadeau | h4. Avrdude  | 
| 179 | 34 | Patrice Nadeau | > Version 6.1  | 
| 180 | 1 | Patrice Nadeau | |
| 181 | Logiciel de transfert pour AVR.  | 
||
| 182 | |||
| 183 | 84 | Patrice Nadeau | Installer les modules suivants :  | 
| 184 | 1 | Patrice Nadeau | <pre><code class="bash">  | 
| 185 | 24 | Patrice Nadeau | sudo zypper install avrdude libusb-compat-devel  | 
| 186 | 1 | Patrice Nadeau | </code></pre>  | 
| 187 | |||
| 188 | 25 | Patrice Nadeau | Permissions USB  | 
| 189 | 24 | Patrice Nadeau | Créer le fichier de règle :  | 
| 190 | <pre><code class="bash">  | 
||
| 191 | 26 | Patrice Nadeau | sudo vi /etc/udev/rules.d/60-avrisp.rules  | 
| 192 | 24 | Patrice Nadeau | </code></pre>  | 
| 193 | 39 | Patrice Nadeau | Contenu du fichier :  | 
| 194 | 1 | Patrice Nadeau | <pre><code class="bash">  | 
| 195 | SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end"  | 
||
| 196 | # Atmel Corp. JTAG ICE mkII  | 
||
| 197 | ATTR{idVendor}=="03eb", ATTR{idProduct}=="2103", MODE="660", GROUP="avr" | 
||
| 198 | # Atmel Corp. AVRISP mkII  | 
||
| 199 | ATTR{idVendor}=="03eb", ATTR{idProduct}=="2104", MODE="660", GROUP="avr" | 
||
| 200 | # Atmel Corp. Dragon  | 
||
| 201 | ATTR{idVendor}=="03eb", ATTR{idProduct}=="2107", MODE="660", GROUP="avr" | 
||
| 202 | LABEL="avrisp_end"  | 
||
| 203 | </code></pre>  | 
||
| 204 | |||
| 205 | Rebrancher le programmeur USB pour relire le fichier */etc/udev/rules.d*  | 
||
| 206 | |||
| 207 | Créer un groupe *avr* et y ajouter les usagers nécessaires.  | 
||
| 208 | <pre><code class="bash">  | 
||
| 209 | 27 | Patrice Nadeau | sudo groupadd avr  | 
| 210 | sudo usermod --groups avr username  | 
||
| 211 | 1 | Patrice Nadeau | </code></pre>  | 
| 212 | |||
| 213 | L’usager doit se reloguer.  | 
||
| 214 | |||
| 215 | h3. BeagleBone  | 
||
| 216 | |||
| 217 | 52 | Patrice Nadeau | h2. Simulation  | 
| 218 | |||
| 219 | 53 | Patrice Nadeau | Simulation de circuit électronique.  | 
| 220 | |||
| 221 | 55 | Patrice Nadeau | h3. GNUCap  | 
| 222 | |||
| 223 | <pre><code class="bash">  | 
||
| 224 | 56 | Patrice Nadeau | sudo zypper install gnucap gspiceui geda-gschem geda-netlist  | 
| 225 | 55 | Patrice Nadeau | </code></pre>  | 
| 226 | |||
| 227 | 1 | Patrice Nadeau | h2. CAD  | 
| 228 | |||
| 229 | h3. KiCAD  | 
||
| 230 | 72 | Patrice Nadeau | > Version 4.0.6  | 
| 231 | 1 | Patrice Nadeau | |
| 232 | h4. Installation  | 
||
| 233 | |||
| 234 | 71 | Patrice Nadeau | <pre><code class="bash">  | 
| 235 | 72 | Patrice Nadeau | sudo zypper install kicad  | 
| 236 | 1 | Patrice Nadeau | </code></pre>  | 
| 237 | |||
| 238 | h4. Personnalisation  | 
||
| 239 | |||
| 240 | 13 | Patrice Nadeau | Les fichiers gabarit d'un +nouveau+ projet sont :  | 
| 241 | 4 | Patrice Nadeau | * Global (system wide) : */usr/share/kicad/template/kicad.pro*.  | 
| 242 | * Utilisateur courant : *~/noname.pro*  | 
||
| 243 | 5 | Patrice Nadeau | |
| 244 | 10 | Patrice Nadeau | >Comme les libraires fournis proviennent de source divers et que je ne contrôle pas, je ne travaille qu’avec mes propres libraires.  | 
| 245 | >J’enlève donc les librairies de KiCad et j'ajoute les miennes.  | 
||
| 246 | >Fichier _~/noname.pro_ (2 lignes à modifier) :  | 
||
| 247 | >* _LibDir_ : */home/pnadeau/Documents/projects/cad/libraries/kicad/*  | 
||
| 248 | 1 | Patrice Nadeau | |
| 249 | h2. Autres  | 
||
| 250 | |||
| 251 | h3. Logic  | 
||
| 252 | 68 | Patrice Nadeau | > Version 1.2.10  | 
| 253 | 1 | Patrice Nadeau | |
| 254 | Analyseur logique  | 
||
| 255 | |||
| 256 | Téléchargement à partir de http://www.saleae.com/downloads  | 
||
| 257 | |||
| 258 | Décompresser le fichier et placer les fichiers dans *~/Logic*  | 
||
| 259 | |||
| 260 | Installer le pilote  | 
||
| 261 | <pre><code class="bash">  | 
||
| 262 | 31 | Patrice Nadeau | ~/Logic/Drivers/install_driver.sh  | 
| 263 | 1 | Patrice Nadeau | </code></pre>  | 
| 264 | |||
| 265 | 31 | Patrice Nadeau | Débrancher et rebrancher l'analyseur.  |