SOP 002-Environnement informatique » Historique » Version 86
  Patrice Nadeau, 2018-03-24 17:47 
  
| 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 | 86 | Patrice Nadeau | #### splint  | 
| 140 | 1 | Patrice Nadeau | |
| 141 | Vérificateur de syntaxe C  | 
||
| 142 | 17 | Patrice Nadeau | |
| 143 | 86 | Patrice Nadeau | sudo zypper install splint  | 
| 144 | 1 | Patrice Nadeau | |
| 145 | 86 | Patrice Nadeau | ### Doxygen  | 
| 146 | |||
| 147 | 1 | Patrice Nadeau | Outil de documentation (C/C++, java)  | 
| 148 | |||
| 149 | Installation  | 
||
| 150 | |||
| 151 | 86 | Patrice Nadeau | sudo zypper install doxygen texlive-latex texlive-xtab texlive-multirow texlive-sectsty texlive-tocsoft  | 
| 152 | 1 | Patrice Nadeau | |
| 153 | 86 | Patrice Nadeau | ### Git  | 
| 154 | |||
| 155 | 1 | Patrice Nadeau | Système de contrôle de version  | 
| 156 | |||
| 157 | Installation  | 
||
| 158 | |||
| 159 | 86 | Patrice Nadeau | sudo zypper install git  | 
| 160 | 1 | Patrice Nadeau | |
| 161 | 86 | Patrice Nadeau | ### Atmel AVR  | 
| 162 | |||
| 163 | 1 | Patrice Nadeau | Pour la programmation des micro-controleur AVR 8 bits d’Atmel.  | 
| 164 | |||
| 165 | 86 | Patrice Nadeau | #### GNU toolchain  | 
| 166 | 1 | Patrice Nadeau | |
| 167 | > Version 5.4.0 de avr-gcc  | 
||
| 168 | |||
| 169 | 86 | Patrice Nadeau | sudo zypper addrepo http://download.opensuse.org/repositories/CrossToolchain:avr/openSUSE_Leap_42.3/CrossToolchain:avr.repo  | 
| 170 | sudo zypper refresh  | 
||
| 171 | sudo zypper install cross-avr-gcc cross-avr-binutils avr-libc  | 
||
| 172 | 1 | Patrice Nadeau | |
| 173 | 86 | Patrice Nadeau | #### Avrdude  | 
| 174 | 34 | Patrice Nadeau | > Version 6.1  | 
| 175 | 1 | Patrice Nadeau | |
| 176 | Logiciel de transfert pour AVR.  | 
||
| 177 | |||
| 178 | Installer les modules suivants :  | 
||
| 179 | |||
| 180 | 86 | Patrice Nadeau | sudo zypper install avrdude libusb-compat-devel  | 
| 181 | |||
| 182 | 25 | Patrice Nadeau | Permissions USB  | 
| 183 | 24 | Patrice Nadeau | Créer le fichier de règle :  | 
| 184 | 86 | Patrice Nadeau | |
| 185 | sudo vi /etc/udev/rules.d/60-avrisp.rules  | 
||
| 186 | |||
| 187 | 1 | Patrice Nadeau | Contenu du fichier :  | 
| 188 | |||
| 189 | 86 | Patrice Nadeau | SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end"  | 
| 190 | # Atmel Corp. JTAG ICE mkII  | 
||
| 191 |     ATTR{idVendor}=="03eb", ATTR{idProduct}=="2103", MODE="660", GROUP="avr" | 
||
| 192 | # Atmel Corp. AVRISP mkII  | 
||
| 193 |     ATTR{idVendor}=="03eb", ATTR{idProduct}=="2104", MODE="660", GROUP="avr" | 
||
| 194 | # Atmel Corp. Dragon  | 
||
| 195 |     ATTR{idVendor}=="03eb", ATTR{idProduct}=="2107", MODE="660", GROUP="avr" | 
||
| 196 | LABEL="avrisp_end"  | 
||
| 197 | 1 | Patrice Nadeau | |
| 198 | 86 | Patrice Nadeau | Rebrancher le programmeur USB pour relire le fichier **/etc/udev/rules.d**  | 
| 199 | |||
| 200 | 27 | Patrice Nadeau | Créer un groupe *avr* et y ajouter les usagers nécessaires.  | 
| 201 | |||
| 202 | 86 | Patrice Nadeau | sudo groupadd avr  | 
| 203 | sudo usermod --groups avr username  | 
||
| 204 | |||
| 205 | 52 | Patrice Nadeau | L’usager doit se reloguer.  | 
| 206 | |||
| 207 | 86 | Patrice Nadeau | ### BeagleBone  | 
| 208 | 53 | Patrice Nadeau | |
| 209 | 86 | Patrice Nadeau | ## Simulation  | 
| 210 | 55 | Patrice Nadeau | |
| 211 | Simulation de circuit électronique.  | 
||
| 212 | 56 | Patrice Nadeau | |
| 213 | 86 | Patrice Nadeau | ### GNUCap  | 
| 214 | 55 | Patrice Nadeau | |
| 215 | 86 | Patrice Nadeau | sudo zypper install gnucap gspiceui geda-gschem geda-netlist  | 
| 216 | 1 | Patrice Nadeau | |
| 217 | 86 | Patrice Nadeau | ## CAD  | 
| 218 | 72 | Patrice Nadeau | |
| 219 | 86 | Patrice Nadeau | ### KiCAD  | 
| 220 | 1 | Patrice Nadeau | > Version 4.0.6  | 
| 221 | |||
| 222 | 86 | Patrice Nadeau | #### Installation  | 
| 223 | 72 | Patrice Nadeau | |
| 224 | 86 | Patrice Nadeau | sudo zypper install kicad  | 
| 225 | 1 | Patrice Nadeau | |
| 226 | 86 | Patrice Nadeau | #### Personnalisation  | 
| 227 | 1 | Patrice Nadeau | |
| 228 | 13 | Patrice Nadeau | Les fichiers gabarit d'un +nouveau+ projet sont :  | 
| 229 | 86 | Patrice Nadeau | |
| 230 | 4 | Patrice Nadeau | * Global (system wide) : */usr/share/kicad/template/kicad.pro*.  | 
| 231 | 5 | Patrice Nadeau | * Utilisateur courant : *~/noname.pro*  | 
| 232 | 10 | Patrice Nadeau | |
| 233 | >Comme les libraires fournis proviennent de source divers et que je ne contrôle pas, je ne travaille qu’avec mes propres libraires.  | 
||
| 234 | >J’enlève donc les librairies de KiCad et j'ajoute les miennes.  | 
||
| 235 | >Fichier _~/noname.pro_ (2 lignes à modifier) :  | 
||
| 236 | 1 | Patrice Nadeau | >* _LibDir_ : */home/pnadeau/Documents/projects/cad/libraries/kicad/*  | 
| 237 | |||
| 238 | 86 | Patrice Nadeau | ## Autres  | 
| 239 | 1 | Patrice Nadeau | |
| 240 | 86 | Patrice Nadeau | ### Logic  | 
| 241 | 1 | Patrice Nadeau | > Version 1.2.10  | 
| 242 | |||
| 243 | Analyseur logique  | 
||
| 244 | |||
| 245 | Téléchargement à partir de http://www.saleae.com/downloads  | 
||
| 246 | |||
| 247 | Décompresser le fichier et placer les fichiers dans *~/Logic*  | 
||
| 248 | |||
| 249 | Installer le pilote  | 
||
| 250 | 86 | Patrice Nadeau | |
| 251 | ~/Logic/Drivers/install_driver.sh  | 
||
| 252 | 1 | Patrice Nadeau | |
| 253 | 31 | Patrice Nadeau | Débrancher et rebrancher l'analyseur.  |