2017-08-11 06:05 PM
I am connecting a standalone board with a STM32f070 to a ST Link v2, but regardless all my efforts ST Link is unable to detect the MCU and I can not program it, I can not found any information about this issue, it seems everyone has done it straight forward with no issues. I am attaching some pics in how I am trying to connect the device to ST Link, I followed the schematics from ST official site with no results.
I have connected VCC 3.3 to board, I am sure GND is ok and jumper for programming is set.
2018-02-15 02:35 AM
I have found influence of some capacitance on SWCLK pin on my board connector - by probing with oscilloscope. After soldering 12pF to my board between SWCLK and GND, my STLINK and debug with EMBITZ have start to work perfectly.
2018-02-15 04:10 AM
Hello Jesus Perez,
I made a review of your schematics. Let me share with you its outcome:
Supply pins
Reset pin
BOOT pin
Capacitors
For more information please refer to
http://www.st.com/resource/en/application_note/dm00089834.pdf
. Below I attach a picture with reference schematics.Regards
Szymon2018-02-15 11:16 PM
To keep the thing simple:
1. Short BOOT0 to GND.
2. Get rid of RESET capacitor.
3. Make sure to put the right supply decoupling capacitors close to VDD/GND pins.
4. Reduce SWCLK frequency to no more than 1 MHz - the most important thing to do.
5. You don't really need the RESET connection to ST-Link. Just make sure you don't change the default functions of SWCLK and SWDIO pins in your firmware.