2011-12-16 04:12 AM
Hi all,
I am trying to program the discovery board of stm32f4 using SWD via the Cn3 connector. Does anyone have any experience in that.. Arun2011-12-16 06:11 AM
The board isn't set up to do that conveniently. The SWD connector is designed for programming an external MCU by connecting it's SWD connection to the Discovery SWD. Your PC connection is then to the USB connector CN1, and the Discovery is being used as a pass-through. Removing the CN3 jumpers keeps the Discovery F4 processor from messing up communication with the external MCU.
If you really want to program the Discovery via a SWD connection, you will have to use pins PA13, etc., and possibly even supply a separate power and ground to the board. The F4 datasheet has pinout definitions you will need to do this. Cheers, Hal2011-12-16 08:36 AM
Although CN3 would represent a good injection point for an external SWD programmer, you'd obviously want to hook up a ground, and maybe the NRST
2011-12-17 01:45 PM
Clive is correct. You will also need to connect power. 5V will be needed to get 2.5V for the Cirrus chip. Otherwise, it looks like 3V regulated will do.
Cheers, Hal2011-12-30 02:58 AM