2012-10-17 01:14 AM
Hi Guys,
I have been playing with my STM32F4Discovery board for a few weeks now using the provided programs, but now I wrote one of my own and can not get it to work. I am using some of the files form the IO_Toogle example, the program is compiling and Linking fine with no errors at the end. I have selected the STM32F407VG as the target. When I try to load or even erase I get this error message: ''Unknown Target Connected''. same if I try to initiate a debug session. When I try to run the original IO_Toggle program, it loads and runs perfectly. I am at a loss here... Any Help will be much appreciated, as I am pulling my hair out. Best Regards Luis2012-10-17 07:25 AM
On what tool chain?
Have you set up the debug/flash to use JTAG pod in SWD mode? Have you tried cloning one of the project examples/templates, building a project from scratch assumes you get a lot of hidden settings/configurations correct.2013-03-07 06:12 AM
Please check the following settings regarding to the microcontroller you use.
2013-03-07 07:40 AM
That's more likely to get you an ''Error : Flash download failed'' condition.
No Algorithm found for: 08000000H - 0800256FH Erase skipped! The error mentioned often occurs as a result of the part not being powered, JTAG used instead of SWD, or the part being generally unresponsive to the debugger.2013-03-07 07:52 AM
Depending on the MDK version, I would try both ''ST-Link'' and ST-Link(Deprecated)'' as debug adapter.
And, as clive suggested, check that it is actually set to SWD (for the discovery-integrated version).2014-05-22 07:34 AM
After I foolishly connected 3v to PF9, then It happened ''Unknown Target Connected''. I am not sure it is coincident, or that connection caused some problem in hardware .
Please help2014-05-22 07:53 AM
Please help
I'm not sure what that would be. If you evaporated the silicon you would need to replace the part(s) that were destroyed. Check the supplies, and VCAP pins (on F2/F4 parts) In terms of signs of life from the STM32, you could reboot with BOOT0 = High, and either use USART1 (or others per device) and test the System Loader's response to 0x7F sent at 9600 8E1, or USB DFU mode.2014-05-22 07:58 AM
If the target was powered at that time, this should not cause problems.
But if it was not, and the 3V was only applied to the GPIO pin, your target MCU might be dead, or damaged beyond repair.2014-05-22 08:18 AM
It was powered.
which one I should choose, JTAG or SW? I am using Keil 4. Thanks2014-05-22 08:28 AM
It was powered. Can I use 100k resistor to connect to 3v to reboot it?
Can you? As you have the broken board, only you are going to be able to diagnose the problem. You might have to identify and replace the part(s) which were damaged. Start by looking at the supplies.