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
fr:examples:setup:windows [2010/03/09 15:55] sdeniaudfr:examples:setup:windows [2020/07/20 09:00] (current) – external edit 127.0.0.1
Line 127: Line 127:
 ===== Débugger ===== ===== Débugger =====
  
-[{{  :examples:install:windows:studio_debugger_io_view.png?280|La liste des registre dans le débugger du ATmega128.}}]+[{{  :examples:install:windows:studio_debugger_io_view.png?280|La liste des registres dans le débugger du ATmega128.}}]
  
-Debugging a program means searching faults in the programTo do that programs called debuggers are createdthey allow observing the program step by step and stopping the program where it is needed Such implementation of the program allows checking the values of the variables at any phase of the programcontents of the registers and the sequence of executing the programEspecially important is using debugging when dealing with more complex programs where it is often difficult to find faults. At microcontrollers, it is also important that implementing the program step-by-step is done in the controller and allows to see in addition to the values of the registers also change of real outputs. For using debuggertwo conditions must be filledmicrocontroller must support debugging and you must have necessary hardware – JTAG programmer which allows debugging. Cheaper programmers which are using ISP programming interface may upload compiled program into the controller but may not allow debugging.    +Débugger un programme signifie rechercher les éventuelles erreurs dans le programmePour ce faire on crée un programme qui s'appelle un débuggeril vérifie le programme pas à pas en arrêtant le programme si nécessaireUne telle exécution du programme permet de vérifier les valeurs des variables à tout momentle contenu des registres ainsi que la séquence d'exécution du programmeLe débugger est particulièrement utile lorsque le programme traite avec des programmes plus complexes où il est souvent compliqué de trouver les erreurs. //Dans les micro-contrôleurs, il est aussi important que l'exécution du programme soit faite au pas à pas dans le contrôleur et permet de voir de plus les valeurs du registre en changeant les véritables sorties (??) At microcontrollers, it is also important that implementing the program step-by-step is done in the controller and allows to see in addition to the values of the registers also change of real outputs.// Pour utiliser le débuggerdeux conditions doivent être rempliesle micro-contrôleur doit être compatible avec le débugger et vous devez avoir obligatoirement le matériel informatique (//hardware//??nécessaire - le programmeur JTAG qui est capable de débuggerCertains programmeurs bon marché qui utilisent l'interface de programmation ISP permet de transférer un programme compilé au contrôleur mais ne permet pas de le débugger.
-  +
-To start the program in debugging mode with the AVR Studio, it should be first compiled by pressing button //build// (F7) and start the compiled program with the command //Run// (F5). To the source code of the program may be added //break points// where desired (F9). If the implementation of the program arrives to the break point,  the program is stopped and the state of the microcontroller may be investigated at the moment of arrival to that point. Implementation of the program may be continued by giving command //Run// again or use implementing command by command,  this is done with command //Step Into// (F11)   +
  
 +Pour démarrer le programme dans le mode débugger avec le Studio AVR, le programme doit être compilé en appuyant sur le bouton //build// (F7) puis il doit être démarré avec la commande //Run// (F5). Il est possible d'ajouter au code source des //break point// (F9) à l'endroit où l'on veut faire une pause dans l'exécution. Si l'exécution du programme se déroule correctement jusqu'au break point, le programme s'arrête et l'état du micro-contrôleur peut être contrôlé en l'état. L'exécution du programme peut être relancée en donnant la commande //Run// à nouveau ou en utilisant l'exécution au pas à pas en utilisant la commande //Step Into// (F11).
  
-===== The usage of floating-point variables ===== 
  
-Sometimes it is necessary to use floating-point variables int the program of AVR. When calculating with these and presenting them with //printf//-type functions following set-up changes must be done to the configuration of the project:+===== L'utilisation de variables flottantes =====
  
-**1.** Open the set-up of the project from the menu //Project -> Configuration Options//. On the configuration tab //Libraries// comes where the object //libhomelab.a// of the library of the HomeLab was added, after that must be added also //libprintf_flt.a// and //libm.a//.+Il est parfois nécessaire d'utiliser des variables flottantes dans un programme AVRLorsqu'on les utilise dans des calculs ou lorsqu'on veut les afficher à l'aide d'une fonction de type ''printf'' il est nécessaire de configurer les options du projet comme suit:
  
-**2.** Next, //Custom Options// tab must be opened and //[All files]// section must be chosen. To the box on the right rows "-lprintf_flt" ja "-lm" must be addedTo the //[Linker Options]// section must be added row: "-uvfprintf".+**1.** Ouvrir le menu option du projet par //Project -> Configuration Options//. Dans l'onglet de configuration //Libraries//, où l'on retrouve l'objet ''libhomelab.a'' de la librairie du HomeLab, ajouter les objets ''libprintf_flt.a'' et ''libm.a''.
  
-**3.** Press OK and close configuration window.+**2.** Ensuite, ouvrir l'onglet //Custom Options// puis choisir la section //[All files]//. Ajouter dans la partie droite ''-lprintf_flt'' et ''-lm''. Dans la partie //[Linker Options]// ajouter ''-uvfprintf''
 + 
 +**3.** Appuyer sur OK et quitter la fenêtre de configuration.
fr/examples/setup/windows.1268150128.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