rusefi_documentation/STM32F4Discovery-Repair.md

166 lines
6.6 KiB
Markdown
Raw Permalink Normal View History

2022-12-27 05:27:04 -08:00
# STM32F4Discovery Repair
See also [Troubleshooting](Troubleshooting)
## Summary
2022-12-27 05:27:04 -08:00
So you think you broke your discovery, good news, we have some tips for diagnostics and some suggestions for solutions. Fear not there is likely some good news below. For this diagnostics, we will assume you have removed the discovery from what ever circuit it was connected to and it is only being connected via "CN1" USB jack on SWD side of the board. The board should be something like the below picture.
![Discovery with USB JP1 Installed](Images/Discovery_USB_JP1-installed.jpg)
## Diagnostics steps
### Step 1 Check the power supply and programming chip
2022-12-27 05:27:04 -08:00
#### Setup the Discovery like this
2022-12-27 05:27:04 -08:00
* With USB not connected, remove Idd jumper JP1.
* Plug in to USB power,
#### Description of what is being check
2022-12-27 05:27:04 -08:00
This prevents the 3V from making it to the target ST chip. This will isolate the part of the board you may have damaged. It will likely remove stray loads and will allow you to test if the power supply and SWD programming chip is functional.
#### Check(s) to determine what solution to follow
* Does the red LD2 "PWR" go bright RED? -- If so your power supply is probably in good order. Go to solution **Step 2**. If the LED is dim, proceed to the next line.
* Is LD1 "COM" solid red and LD2 "PWR" dim? -- If so this is good, it means you are getting 5V via USB and the programmer chip is probably functional. If it is red, proceed to **Solution 1 Broken D3** else proceed to the next line.
* Is LD1 "COM" green? -- If so this means you have 3V and ??? (I don't know when it will be green). If it's green or blinks green when communicating with it, this means you have 3V and your LD2 "PWR" light is broken. Proceed to **Solution 3 Broken LD1** else proceed to the next line.
2022-12-27 05:27:04 -08:00
* Is LD1 "COM" blinking red? -- If so this could be and could be indicating the processor is active and doing stuff. TBD inquire in the forums for help.
* Is LD1 dim -- TBD ask in the forums for help.
2022-12-27 05:27:04 -08:00
* Are all LED's off? -- If so this likely means there was a 5V short to GND and D1 has broken. To really check, with a multi-meter measure ![DC Symbol](Images/DC-symbol.gif) DC voltage referenced to GND like at JP2 or JP3. Measure the voltage at both sides of D1. If you measure 5V at one side and less than 100mV on the other side, proceed to **Solution 2 Broken D1** If you measure below 100mV on both sides, 5V is not making it to this board, check your USB is providing 5V.
### Step 2 Check the target ST chip
2022-12-27 05:27:04 -08:00
#### Setup the Discovery like this
2022-12-27 05:27:04 -08:00
TBD
#### Description of what is being check
2022-12-27 05:27:04 -08:00
TBD
2022-12-27 05:27:04 -08:00
#### Check(s) to determine what solution to follow
TBD
2022-01-24 20:06:11 -08:00
reference forum suggestion for repair found here [stm32f4discovery troubleshooting and repair - Forum](http://rusefi.com/forum/viewtopic.php?f=4&t=653&start=16)
## Solutions
2022-12-27 05:27:04 -08:00
### Solution 1 Broken D3
2022-12-27 05:27:04 -08:00
#### Fix 1
2022-12-27 05:27:04 -08:00
You may notice that D1, D2, D3 are the same. You probably don't use D2, as R2 is not populated by default. You can probably safely re-purpose that diode. If you have a second broken board, you can probably scavenge a diode from another dead board. If replace the diode, before you power it up, carefully check that the line on the diode looks like it does in the picture. If it's installed backwards, the board will not turn on. It will act like the diode is broken. Once this repair has been made, start the diagnostics process over.
![D3 Orientation](Images/D3_orientation.jpg)
#### Fix 2
2022-12-27 05:27:04 -08:00
Easiest solution is to get a new D3 which can be found [here at digikey](http://www.digikey.com/product-detail/en/BAT60JFILM/497-3707-6-ND/1848703?WT.z_cid=ref_octopart_dkc_buynow&site=us) or [here at octopart](http://octopart.com/partsearch#!?q=BAT60JFILM%0D%0A)
If you replace the diode, before you power it up, carefully check that the line on the diode looks like it does in the picture. If it's installed backwards, the board will not turn on. It will act like the diode is broken. Once this repair has been made, start the diagnostics process over.
![D3 Orientation](Images/D3_orientation.jpg)
#### Fix 3
2022-12-27 05:27:04 -08:00
Replace with some other diode you have kicking around int the junk box. Once this repair has been made, start the diagnostics process over.
#### Fix 4
2022-12-27 05:27:04 -08:00
You can remove the diode and install a little jumper wire. However be careful as a short to GND now could damage your regulator, and it's much harder to replace the regulator. Once this repair has been made, start the diagnostics process over.
### Solution 2 Broken D1
2022-12-27 05:27:04 -08:00
#### Fix 1
2022-12-27 05:27:04 -08:00
See "Solution 1 Broken D3" but change the D1 diode instead. Once this repair has been made, start the diagnostics process over.
![D3 Orientation](Images/D3_orientation.jpg)
### Solution 2 Broken D1
2022-12-27 05:27:04 -08:00
#### Fix 1
2022-12-27 05:27:04 -08:00
Replace the LED or ignore it. This is only an indicator that you have 3V.
## general information
![STM42F4 Discovery](Images/2014-08-21T15-20-24.645Z-stm32f4_discovery.jpg)
2022-12-27 08:10:06 -08:00
![STM42F4 Discovery Layout](Images/Layout.png)
[stm32f4discovery home page](http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF252419)
[BOM archive](http://www.st.com/st-web-ui/static/active/en/resource/technical/document/bill_of_materials/stm32f4discovery_bom.zip)
2021-02-16 05:41:05 -08:00
[Schematic](PDFs/Stm32f4discovery_schematics.pdf)
## Normal measurements
2022-12-27 05:27:04 -08:00
Here are several measurements to function as a point of reference. These were taken with a known good board.
2022-12-27 08:10:06 -08:00
* With the USB powering the board via CN1 and JP1 removed,
Voltage referenced to GND is
2022-12-27 05:27:04 -08:00
Voltage measurements
||Away from audio jack|closer to audio jack
2022-12-27 08:10:06 -08:00
--- | ----- | ------
|D1|4.76V|5.08V
|D3|3.298V|2.968V
|JP1|2.968V|.3mV
2022-12-27 08:10:06 -08:00
* With no USB and no other connections to the discovery,
2022-12-27 05:27:04 -08:00
2022-12-27 08:10:06 -08:00
the measured ohms (auto scale) to GND with JP1 removed, The SWD side of JP1 measured at 7.34k ohms, and the audio jack side of JP 1 measured at 4.98k ohms.
## common parts
D1, D2, D3: BAT60JFILM
U1: LD3985M33R
U3: LD3985M25R
## Scenario: Normal operation
![Normal](Images/normal.png)
You plug discovery into a powered mini USB cable and both LD1 and LD2 are bright red.
## Scenario: Full darkness
You plug discovery into a powered mini USB cable and discovery is totally dark
## Scenario: A drop of life
2021-02-15 20:43:25 -08:00
![Weak](Images/weak.jpg)
You plug discovery into a powered mini USB cable and there is bit of light on LD2 but nothing on LD1.
## checks
### Check #1: D1
2022-12-27 05:27:04 -08:00
With mini USB supplying power both sides of D1 should show about +5v. If not D1 might be at fault.
![D1 Diode schematic](Images/D1_schematic.png)
### Check #2: U1
With mini USB supplying power bottom-right pin on U1 should show ~3v. If it's below 2v, U1 might be faulty.
![Regulator schematic](Images/regulator_schematic.png)
LD3985M33R
![Regulator pinout](Images/regulator_pinout.png)
On the discovery board the chip is upside-down.
## stats
2022-12-27 05:27:04 -08:00
Repaired by D1 replacement: 1