fr:uhsdr:uhsdrtroubleshooting

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
fr:uhsdr:uhsdrtroubleshooting [09.02.2018 07:43] df9ts_userfr:uhsdr:uhsdrtroubleshooting [26.02.2018 18:59] (Version actuelle) df9ts_user
Ligne 20: Ligne 20:
 === Mode d'emploie si ST-Link/V2 est disponible === === Mode d'emploie si ST-Link/V2 est disponible ===
  
-Un MCU non fonctionnel peut être restauré - s'il n'y a pas de problème "hardware" - avec l'adaptateur ST-Link/V2 et le fichier .bin requis. Le fichier .bin peut être trouvé [[:fr:uhsdr:uhsddownload|ici]].+Un MCU non fonctionnel peut être restauré - s'il n'y a pas de problème "hardware" - avec l'adaptateur ST-Link/V2 et le fichier .bin requis. Le fichier .bin peut être trouvé [[:fr:uhsdr:uhsdrdownload|ici]].
  
 [[https://github.com/df8oe/UHSDR/blob/81dd4afae1a52103b2f1824cba34e2ff35e805ea/mchf-eclipse/useful_manuals/bootloader_doc.md|Github Doc]] [[https://github.com/df8oe/UHSDR/blob/81dd4afae1a52103b2f1824cba34e2ff35e805ea/mchf-eclipse/useful_manuals/bootloader_doc.md|Github Doc]]
Ligne 27: Ligne 27:
  
   * STM32 ST-Link utilitaire SW   * STM32 ST-Link utilitaire SW
-  * [[http://www.st.com/content/st_com/fr/products/development-tools/hardware-development-tools/development-tool-hardware-for-mcus/debug-hardware-for-mcus/debug -hardware-pour-stm32-mcus / st-link-v2.html|Adaptateur ST-Link V2] * [[fr:uhsdr:uhsddownload|Versions UHSDR récentes]] (fichiers .bin) +  * [[http://www.st.com/content/st_com/fr/products/development-tools/hardware-development-tools/development-tool-hardware-for-mcus/debug-hardware-for-mcus/debug -hardware-pour-stm32-mcus/st-link-v2.html|Adaptateur ST-Link V2]
 +  * [[fr:uhsdr:uhsdrdownload|Versions UHSDR récentes]] des fichiers .bin 
 +\\
 === 1. Conditions préalables === === 1. Conditions préalables ===
- 
   * Logiciel STlink installé   * Logiciel STlink installé
- +  * Adaptateur ST-Link / V2 connecté    
-* Adaptateur ST-Link / V2 connecté   * PC connecté à Internet +  * PC connecté à Internet 
 +\\
 === 2. ST-Link / V2 Firmware updateProcedure === === 2. ST-Link / V2 Firmware updateProcedure ===
- 
   * Connectez ST-Link / V2 avec un PC via un câble USB   * Connectez ST-Link / V2 avec un PC via un câble USB
- +  * Utilitaire SW: ST-Link→ Mise à jour du firmware  
-* Utilitaire SW: ST-Link→ Mise à jour du firmware   * Vérifiez sur l'écran du PC dans les messages d'état que MCU est reconnu correctement+  * Vérifiez sur l'écran du PC dans les messages d'état pour voir si le MCU est reconnu correctement
  
 [{{:uhsdr:st-link1.png?400|}}] [{{:uhsdr:st-link1.png?400|}}]
 +\\
 === 3. Câble de débogage === === 3. Câble de débogage ===
 +Le câble entr ST-Link/V2 est OVI40 UI ne doit pas dépasser 10 cm. 3 à 4 connexions sont nécessaires dans ce cable:
  
-Le câble de débogage ne doit pas dépasser 10 cm. 3 à 4 connexions sont nécessaires. +|< 60% 50% 25% 25% >| 
- +|ST-link adapter  |OVI40 UI JP8  |Remark  
-|<40% 50% 50%>+|Pin-13 TRACESWO  |JP8 Pin 1     |Debug Output  
-|Interface utilisateur ST-link|JP8| +|Pin-15 NRST      |JP8 Pin 2     |Reset         | 
-|JTAG-9 SWCLK|JP8 Pin 4+|Pin-07 SWDIO     |JP8 Pin 3     |Debug I/O     
-|JTAG-SWDIO|JP8 Pin 3| +|Pin-09 SWCLK     |JP8 Pin 4     |Debug Clock   
-|JTAG-20 Gnd|JP8 Pin 6+|Pin-01 MCU VDD   |JP8 Pin 5     |VDD from MCU  
-|pas essentiel: Signal: Reset|JP8 Broche 2+|Pin-20 Gnd       |JP8 Pin 6     |Ground        | 
- +{{:uhsdr:en.dm00026748.pdf|Déscription adaptateur ST-Link V2 et ST-Link}}
-{{:uhsdr:en.dm00026748.pdf|D´scription adaptateur ST-Link V2 et ST-Link}}+
  
 [{{:ovi40test:img_1971.jpg?400|Connexion ST-Link vers la carte OVI40 UI (photo F4HTX)}}] [{{:ovi40test:img_1971.jpg?400|Connexion ST-Link vers la carte OVI40 UI (photo F4HTX)}}]
 +\\
 === 4. Connectez-vous === === 4. Connectez-vous ===
- 
   * Utilitaire SW: Target→ Connect   * Utilitaire SW: Target→ Connect
- +  * Utilitaire SW: Fichier → Ouvrir (sélectionner le bon fichier .bin, voir ci-dessus). L'écran suivant devrait apparaître: (l'exemple montre le chargeur de démarrage mcHF)
-* Utilitaire SW: Fichier → Ouvrir (sélectionner le bon fichier .bin, voir ci-dessus). L'écran suivant devrait apparaître: (l'exemple montre le chargeur de démarrage mcHF)+
  
 [{{:uhsdr:st-link3.png?400|}}] [{{:uhsdr:st-link3.png?400|}}]
- +\\ 
-=== 5. Flash le MCU === +=== 5. Programmez le MCU ===
   * Ecrivez le fichier .bin sur MCU avec Target → Program & Verify   * Ecrivez le fichier .bin sur MCU avec Target → Program & Verify
- +  * Dans la fenêtre suivante, entrez l'adresse "start" a partir de laquelle le Mfichier bin va être programme: 
-* Dans le windo suivant, entrez l'adresse de départ    * adresse de départ pour le chargeur de démarrage: 0x08000000   * Puis appuyez sur le bouton de démarrage pour programmer MCU +    * adresse de départ pour le chargeur de démarrage: 0x08000000 
 +    * Puis appuyez sur le bouton de démarrage pour programmer MCU
 [{{:uhsdr:st-link4.png?400|}}] [{{:uhsdr:st-link4.png?400|}}]
- +  * Ensuite, programmez de la même facon le fichier UHSDR "firmware" 
-<code> +    * l'adresse "start" pour le "firmware" est 0x08010000
-\\    * Ensuite, programmez les ustensiles de cuisson de la même manière. +
-</code> +
- +
-* l'adresse de début pour l'article ferme serait 0x08010000 +
 [{{:uhsdr:st-link2.png?400|}}] [{{:uhsdr:st-link2.png?400|}}]
 +\\
 === 6. Fini === === 6. Fini ===
- +Le chargeur d'amorçage et le firmware sont mis à nouveau.
-Le chargeur d'amorçage et le micrologiciel sont à nouveau programmés sur MCU.+
  
 ==== Restaurer les "option bytes" de l'MCU ==== ==== Restaurer les "option bytes" de l'MCU ====
Ligne 90: Ligne 80:
 1. Vous aurez besoin de l'outil [[http://www.st.com/fr/embedded-software/stsw-link004.html|ST-Link]]. Aucun compte requis, il suffit de fournir un e-mail valide - le lien de téléchargement sera envoyé à cet e-mail. 1. Vous aurez besoin de l'outil [[http://www.st.com/fr/embedded-software/stsw-link004.html|ST-Link]]. Aucun compte requis, il suffit de fournir un e-mail valide - le lien de téléchargement sera envoyé à cet e-mail.
  
-2. Connectez ST-LINK USB (3 Leitung SWDIO, SWCLK et GND) avec les broches correspondantes de l'interface utilisateur OVI40 (câble adaptateur voir ci-dessus).+2. Connectez ST-LINK USB (3 connections SWDIO, SWCLK et GND) avec le interface "debug" de OVI40 UI (câble adaptateur voir ci-dessus).
  
-3. Appliquez + 5V à l'interface utilisateur OVI40, puis dans l'outil Logiciel, cliquez sur Cible→ Connecter. Le MCU doit être reconnu, voir les messages d'état à l'écran. Sinon, vérifiez à nouveau les câbles.+3. Appliquez + 5V à OVI40 UI, puis dans l'outil Logiciel, cliquez sur targetconnect. Le MCU doit être reconnu, voir les messages d'état à l'écran. Sinon, vérifiez à nouveau les câbles.
  
-4. Si l'outil SW est correct, cliquez sur Target→ MCU Core pour afficher les octets d'option MCU.+4. Si l'outil SW est correct, cliquez sur Target→ MCU Core pour afficher les "option bytes".
  
-Ce sont les valeurs correctes<50% 50% 50%> |+[{{:uhsdr:optionbytes.png?400|Les valeurs "Option Bytes" STM32F767ZI (screenshot DF9TS)}}]
  
-|Protection contre la lecture:|Level0| +Voici les valeurs correctes:  
-|Niveau BOR:|Level3| +|< 50% 50% 50% >| 
-|IWDG_SW:|Gesetzt+|Read Out Protection:| Level0| 
-|WWDG_SW:|Gesetzt+|BOR-Level:| Level3| 
-|nRST_STOP:|Gesetzt+|IWDG_SW:coché
-|nRST_STDBY:|Gesetzt+|WWDG_SW:coché
-|FZ_IWDG_STOP:|Gesetzt+|nRST_STOP:coché
-|FZ_IWDG_STDBY:|Gesetzt+|nRST_STDBY:coché
-|nDBOOT:|Gesetzt+|FZ_IWDG_STOP:coché
-|nBANQUE:|nicht gesetzt+|FZ_IWDG_STDBY:coché
-|BOOT_ADD0:|0x0080 Boot à partir de 0x200000| +|nDBOOT:coché
-|BOOT_ADD1:|0x0040 Démarrer à partir de 0x100000|+|nDBANK:| pas coché
 +|BOOT_ADD0:| 0x0080 Boot from 0x200000| 
 +|BOOT_ADD1:| 0x0040 Boot from 0x100000|
 |Aucune case à cocher dans la case "Protection de la section Flash"| | |Aucune case à cocher dans la case "Protection de la section Flash"| |
  
-==== Bogues SW dans le chargeur de démarrage ou le firmware ==== +==== Erreurs dans le SW ("bugs"dans le boot loader ou firmware ==== 
- +  La liste des problèmes pas encore resolu peut être trouvée [[https://github.com/df8oe/UHSDR/issues|ici]]. 
-La liste des problèmes ouverts peut être trouvée [[https://github.com/df8oe/UHSDR/issues|ici]].  * Aussi intéressant de vérifier [[https://github.com/df8oe/UHSDR/issues?q=is%3Aissue+is%3Aclosed|liste des numéros clos]].  * Si vous ne trouvez pas dans les questions ouvertes ou fermées s'il vous plaît discuter sur [[https://www.amateurfunk-sulingen.de/forum/index.php?board=19|forum]] +  * Aussi intéressant de vérifier [[https://github.com/df8oe/UHSDR/issues?q=is%3Aissue+is%3Aclosed|liste des problèmes resolu]]. 
- - il peut ne pas être une erreur SW du tout, donc mieux vérifier  * Au cas où vous pensez avoir découvert un bug non encore mentionné    S'il vous plaît poster comme nouveau numéro dans Github. Ajoutez des informations supplémentaires en tant que commentaire, si elles sont découvertes ultérieurement.     * S'il vous plaît soyez patient. Tous les membres de Github y travaillent pendant leur temps libre +  * Si vous ne trouvez pas votre problème discuter le dans le[[https://www.amateurfunk-sulingen.de/forum/index.php?board=19|forum]] 
- + - il se peut que ce n'est pas une erreur SW du tout, donc il faut mieux vérifier 
-==== Vérifiez le matériel défectueux ==== +  * Au cas où vous pensez avoir découvert un "bugnon encore découvert: 
- +    Ouvrez un "issue report" sur Github. Ajoutez des informations supplémentaires en tant que commentaire, si elles sont découvertes ultérieurement.      
-* MCU est-il soudé avec le Pin1 correct?+    * S'il vous plaît soyez patient. Tous le team y travaillent pendant leur temps libre comme bénévole
  
 +==== Vérifiez si votre matériel est défectueux ====
 +  * MCU: est-il bien soudé avec le Pin1 a l'endroit correct?
   * + 3.3V disponible pour MCU? Terre ok?   * + 3.3V disponible pour MCU? Terre ok?
-  * Horloge TCXO disponible+  * Horloge TCXO ok
- +  * Toutes les connexions de MCU aux ports USB OVI40 UI ok - pas de courts-circuits, pas d'interruptions des pistes?
-* Toutes les connexions de MCU aux ports USB ok - pas de courts-circuits, pas d'interruptions des pistes? +
- +
-===== UHSDR Troubleshooting ===== +
- +
-==== LCD constant white screen ==== +
- +
-In case the LCD remains white (background light on, no text) after OVI40 UI power up this indicates +
- +
-  * no UHSDR boot loader present or +
-  * UHSDR boot loader doesn't work properly +
- +
-The correct UHSDR functioning can be verified with simple means: +
- +
-  * If the LCD flickers bright white when switching OVI40 UI on this indicates a bootloader present and working +
-  * Press and keep pressed switch "Band +", then apply +5V to OVI40 UI. Text should appear on LCD. +
-  * Press and keep pressed switch "Band -", then apply +5V to OVI40 UI. Text should appear on LCD. +
- +
-If this is not the case the boot loader needs to be (re)installed (see below). If this still doesn't solve the issue please check for possible hardware errors (see below). +
- +
-==== MCU "bricked" ==== +
- +
-If there is no hardware defect it may help to re-install boot loader and firmware: +
- +
-  * den [[:uhsdr:uhsdrbl|Bootloader re-installieren]] +
-  * die [[:uhsdr:uhsdrfw|Firmware re-installieren]] +
- +
-=== In case ST-Link/V2 available === +
- +
-A non-functional MCU may be restored - if there is no hardware problem - with the ST-Link/V2 adapter and the required .bin file. The file can be found [[:uhsdr:uhsdrdownload|here]]. +
- +
-[[https://github.com/df8oe/UHSDR/blob/81dd4afae1a52103b2f1824cba34e2ff35e805ea/mchf-eclipse/useful_manuals/bootloader_doc.md|Github Doc]] +
- +
-You will need: +
- +
-  * STM32 ST-Link SW utility +
-  * [[http://www.st.com/content/st_com/en/products/development-tools/hardware-development-tools/development-tool-hardware-for-mcus/debug-hardware-for-mcus/debug-hardware-for-stm32-mcus/st-link-v2.html|ST-Link V2 Adapter]] +
-  * [[:uhsdr:uhsdrdownload|Neueste]] Bootloader und UHSDR Firmware (.bin files) +
- +
-=== 1. Preconditions === +
- +
-  * STlink software installed +
-  * ST-Link/V2 adapter connected +
-  * PC connected to Internet +
- +
-=== 2. ST-Link/V2 Firmware updateProcedure === +
- +
-  * Connect ST-Link/V2 with PC via USB cable +
-  * SW Utility: ST-Link→Firmware update +
-  * Check on PC screen in status messages that MCU is reckognized correctly +
-[{{:uhsdr:st-link1.png?400|}}] +
- +
-=== 3. Debug cable === +
- +
-The debug cable shouldn't be longer than 10 cm. 3 to 4 connections are needed. +
- +
-|< 40% 50% 50% >| +
- +
-|  ST-link UI  |  JP8  | +
-|  JTAG-9 SWCLK  |  JP8 Pin 4  | +
-|  JTAG-7 SWDIO  |  JP8 Pin 3  | +
-|  JTAG-20 Gnd  |  JP8 Pin 6  | +
-|  not essential: Signal: Reset  |  JP8 Pin 2  | +
- +
-{{:uhsdr:en.dm00026748.pdf|Beschreibung ST-Link V2 und ST-Link ISO Adapter, Pin out}} +
- +
-[{{:ovi40test:img_1971.jpg?400|Connection ST-Link to UI board (photo F4HTX)}}] +
- +
-=== 4. Connect === +
- +
-  * SW Utility: Target→Connect +
-  * SW Utility: File → Open (select the right .bin file, see above). The following screen should appear: (example shows mcHF boot loader) +
-[{{:uhsdr:st-link3.png?400|}}] +
- +
-=== 5. Flash the MCU === +
- +
-  * Write the .bin file onto MCU with Target → Program & Verify +
-  * In the subsequent windo enter start address: +
-      * start adresse for boot loader: 0x08000000 +
-  * Then hit start button to program MCU +
-[{{:uhsdr:st-link4.png?400|}}] +
- +
-<code> +
-\\    * Then program firware in the same manner. +
-  * start address for firm ware would be 0x08010000 +
-</code> +
- +
-[{{:uhsdr:st-link2.png?400|}}] +
- +
-=== 6. Done === +
- +
-Boot loader and firmware are now programmed again onto MCU. +
- +
-==== Restore MCU Option bytes ==== +
- +
-1. You will need the [[http://www.st.com/en/embedded-software/stsw-link004.html|ST-Link Tool]]. No account required, just provide valid e-mail - download link will be sent to this e-mail. +
- +
-2. Connect ST-LINK USB (3 Leitung SWDIO, SWCLK und GND) with the corresponding pins of OVI40 UI (adapter cable see above). +
- +
-3. Apply +5V to OVI40 UI, then in SW tool click Target→Connect. The MCU should be recognized, see status messages on screen. Otherwise re-check cables. +
- +
-4. If ok in SW tool click Target→MCU Core to display MCU option bytes. +
- +
-These are the correct values: +
- +
-|< 50% 50% 50% >| +
- +
-|Read Out Protection:|Level0| +
-|BOR-Level:|Level3| +
-|IWDG_SW:|gesetzt| +
-|WWDG_SW:|gesetzt| +
-|nRST_STOP:|gesetzt| +
-|nRST_STDBY:|gesetzt| +
-|FZ_IWDG_STOP:|gesetzt| +
-|FZ_IWDG_STDBY:|gesetzt| +
-|nDBOOT:|gesetzt| +
-|nDBANK:|nicht gesetzt| +
-|BOOT_ADD0:|0x0080 Boot from 0x200000| +
-|BOOT_ADD1:|0x0040 Boot from 0x100000| +
-|No ticks set at all in any box below "Flash Section Protection"| | +
- +
-==== SW Bugs in boot loader or firmware ==== +
- +
-The list of open issues can be found [[https://github.com/df8oe/UHSDR/issues|here]]. +
- +
-  * Also interesting to check [[https://github.com/df8oe/UHSDR/issues?q=is%3Aissue+is%3Aclosed|list of closed issues]]. +
-  * If not found in open or closed issues please discuss on [[https://www.amateurfunk-sulingen.de/forum/index.php?board=19|forum]] +
- - it may not be a SW error at all, so better verify +
-  * In case you think you discovered a bug not mentioned yet: +
-      * Please post as new issue in Github. Add additional info as comment, if diiscovered later. +
-      * Please be patient. All Github members work on this in their free spare time +
- +
-==== Check for defective hardware ==== +
- +
-  * Has MCU be soldered in with correct Pin1 orientation? +
-  * +3.3V available for MCU? Ground available? +
-  * TCXO clock available? +
-  * All connections from MCU to USB ports ok - no shurtcuts, no interruptions? +
- +
-\\+
  
  
  • fr/uhsdr/uhsdrtroubleshooting.1518162187.txt.gz
  • Dernière modification : 09.02.2018 07:43
  • de df9ts_user