2014-11-08 12:27 PM
2014-11-08 02:11 PM
I don't have an F102, but I'd be surprised if that is the issue.
Check that you connect with SWD mode, and the ''Connect & Reset'' options. Ideally you'd want more than one reference board. Keil claims it's workablehttp://www.keil.com/dd/chip/4802.htm
Check grounds.2014-11-08 03:10 PM
Thanks Clive for your reply (but it doesn't help). I have of course tried all possible
SW settings, starting with the ones which work with STM32F103. I know that the Ulink2 is supposed to support STM32F102, but does it? From my experience on one board, the score is 1-0 against Ulink2. Ground problem? it is usually what we say when we don't know what to say. But it is still a possibility. I hope to get more boards these days to test them. I am going to try ground bypasses and bigger and better decoupling capacitors. Note that this is a 4-layer board with the two external layers being exclusively ground.2014-11-08 03:35 PM
Actually my concern was the ground over the debug interface, and that in fact they shared a common ground. Your previous post suggests the signal pins are viable. If the ULINK is using the target reference, check that also.
I have very little insight into your board, or debug connection. Here I'd try a JLINK and ST-LINK if I suspected the ULINK.2014-11-10 06:21 AM
No progress so far. I have checked two more boards and the score is now 3-0 against Ulink2 (and ST-link). Ground bypasses and bigger capacitors have no effect.
However there is still a point to investigate: the STM32F103 board which works, has an 8Mhz crystal, while the STM32F102 board has no crystal: maybe that Ulink2 and ST-link need and external crystal to start? I am going to check this tomorrow. I have also ordered pin-to-pin compatible STM32F103 chips which I hope to receive soon. Anyway thanks for your suggestions.2014-11-10 06:41 AM
The parts have no dependency on external crystals, the chips don't boot from them, and it's impossible to guess what someone might attach for generic software to be dependent on them.
Make sure NRESET/NRST is pulled high, but not driven high/low by external circuitry. VSSA powers the PLL and POR. Doesn't sound like a problem capacitors can fix. Seeing as you have three boards, and JTAG pods failing, you might want to focus on connectivity in the design, boards/soldering.2014-11-11 04:28 AM
As expected, crystal makes no difference. I am waiting for the STM32F103 chips I have ordered.