NUCLEO-F103RB HSE Won't Start
I have a NUCLEO-F103RB (MB1136 rev C05). My goal is to remove the ST-LINK and power via a hat supplying 3.3v.
For the 3.3v I have:
- Moved JP5 to pins 2-3.
- Checked JP1 is removed.
- Removed SB2 zero ohm resistor.
- Removed SB12 zero ohm resistor.
- Verified my shield is putting out a good 3.3v which is attached to connector CN7 pin 16.
For the HSE I have:
- Removed SB54 and SB55.
- Soldered zero ohm resistors to R35 and R37.
- Soldered 20pf capacitors to C33 and C34.
- Removed SB16.
- Removed SB50.
- Added 8Mhz 16pf crystal X3.
The ST-LINK is still physically attached at the moment, but I do plan to cut it off once things are working. The board comes up and accepts programming and works in the debugger.
Stepping through the initialization it gets to where the HSE is set up and then sits in an infinite loop waiting for the HSE to come ready. I tried replacing the crystal X3 just in case I got a bad one but there was no change in behavior.
The clock config is unchanged, other than setting HSE to "crystal" mode, from the config that works with the out of the box config where the ST-LINK provides an 8Mhz clock. The board is set to run at 72Mhz.
If I set the board to use an 8Mhz HSI instead it comes up and runs (slowly), so I'm fairly sure the power portion is correct. Stepping through the HAL initialization code it appears to me the HSE never comes ready.
I tried two different boards. The first one used an 8Mhz crystal from my generic stash, exact specs unknown. For the second one I ordered some new 8Mhz crystals that perfectly matched the specifications. Both show the same behavior. I did try probing the crystal with an oscilloscope and I do not see a good clock signal but I'm not sure if my probes (standard 10x rigol) might cause problems seeing the crystal.
Any tips or suggestions welcome.
