User Tools

Site Tools


keilbug

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
keilbug [2018/01/06 21:56]
ian446
keilbug [2018/06/20 13:02] (current)
sirdomsen
Line 1: Line 1:
 +<font 26px/inherit;;rgb(231, 76, 60);;inherit>Since Keil MDK 5.25 does not have the bug anymore, we recommend to update (see Downloads section)</font>
 +
 ===== Keil-Bug workaround (needed for almost all boards except H101/H8S or H8mini_green ) ===== ===== Keil-Bug workaround (needed for almost all boards except H101/H8S or H8mini_green ) =====
  
Line 4: Line 6:
   - Install (if not already) [[http://www.st.com/en/development-tools/stsw-link004.html|STLink Utilities]]   - Install (if not already) [[http://www.st.com/en/development-tools/stsw-link004.html|STLink Utilities]]
   - Connect (if not already) STLink to USB port   - Connect (if not already) STLink to USB port
-  - Connect Quad to STLink+  - Connect quad to STLink (step 3 & 4 not needed, but you'll get a connect error then)
   - Power the quad using a battery   - Power the quad using a battery
   - Click on "target"–>"connect", some blue writing should be displayed. If not, check Wires, check if the board is powered, are STLink drivers installed correctly?   - Click on "target"–>"connect", some blue writing should be displayed. If not, check Wires, check if the board is powered, are STLink drivers installed correctly?
   - Click on "target"–>"disconnect"   - Click on "target"–>"disconnect"
   - Open Keil   - Open Keil
-  - Unplug & plug quad's battery+  - Unplug & plug quad's battery (if flashed for the first time, otherwise continue step 10)
   - Click "flash"–>"erase" (if flashed for the first time, otherwise continue step 10)   - Click "flash"–>"erase" (if flashed for the first time, otherwise continue step 10)
   - Click "flash"–>"download"   - Click "flash"–>"download"
   - Finished   - Finished
  
-**[[https://www.rcgroups.com/forums/showpost.php?p=38868191&postcount=12547|Here is how krillex does it: https://www.rcgroups.com/forums/showpost.php?p=38868191&postcount=12547]] +<font inherit/inherit;;rgb(255, 0, 0);;inherit>NoteIf you're trying to erase a "fresh" board, the time between battery plug-in and erase is limited, be aware of that and do it as fast as you can repeat if it didn't work!</font> 
- **+ 
 +**<font 14px/inherit;;inherit;;inherit>Here is how krillex does it:</font>** [[https://www.rcgroups.com/forums/showpost.php?p=38868191&postcount=12547|Link to post]]
  
 Regarding flashing the blue board for the first time I also have some problems but this is what I do: \\ Regarding flashing the blue board for the first time I also have some problems but this is what I do: \\
Line 29: Line 32:
 I'm sure there are other ways to get it working but that procedure works good for me. I'm sure there are other ways to get it working but that procedure works good for me.
  
-[[https://www.rcgroups.com/forums/showpost.php?p=38869818&postcount=12554|**Another version from Ian444: https://www.rcgroups.com/forums/showpost.php?p=38869818&postcount=12554]]** +**<font 14px/inherit;;inherit;;inherit>Another version from Ian444:</font>** [[https://www.rcgroups.com/forums/showpost.php?p=38869818&postcount=12554|Link to post]]
- +
- \\ Yet another recipe. Must be carried out in this order. Keil can be open, but minimised on the PC. \\ +
-   1. Open the ST-Link Utility program. \\ +
-   2. Connect ST-Link to USB port. Do not connect ST-Link to quad yet. \\ +
-   3. Click "connect" in ST-Link Utility program. \\ +
-   4. You get a "cannot connect" in red message. \\ +
-   5. Close the message and close the ST-Link Utility program. Now the ST-Link is "initialised". \\ +
-   6. Open (or maximise) Keil, connect the quad, connect the quad's battery and flash it. \\  \\ +
-   Note for first erase and flash - usually it is needed to disconnect and then reconnect the battery after the erase and before the flash. No need to disconnect the quad or the ST-Link (or do anything in Keil) when doing this. \\ | +
-| | |+
  
-\\+Yet another recipe. Must be carried out in this order. Keil can be open, but minimised on the PC. \\ 
 +1. Open the ST-Link Utility program. \\ 
 +2. Connect ST-Link to USB port. Do not connect ST-Link to quad yet. \\ 
 +3. Click "connect" in ST-Link Utility program. \\ 
 +4. You get a "cannot connect" message. \\ 
 +5. Close the message and close the ST-Link Utility program. Now the ST-Link is "initialised". \\ 
 +6. Open (or maximise) Keil, connect the quad, connect the quad's battery and flash it. \\  \\ 
 +Note for first erase and flash - usually it is needed to disconnect and then reconnect the battery after the erase and before the flash. No need to disconnect the quad or the ST-Link (or do anything in Keil) when doing this.
  
  
keilbug.1515272193.txt.gz · Last modified: 2018/01/06 21:56 by ian446