cancel
Showing results for 
Search instead for 
Did you mean: 

problem in downloading program inflash

sanjib
Associate III
Posted on April 01, 2014 at 14:33

I have a new stm32f030r8t6 board . i am having problem in downloading code to the flash . for the first time it got downloaded but problem occurs in the second time . error

 connect failed check cable connection
40 REPLIES 40
sanjib
Associate III
Posted on April 03, 2014 at 17:12

I am able to download code int flash with st link utility but not with coocox . The code which I have posted have made this issue. I dont know what happened . Can you say me elaborately what to do and how to do sorry but I dont understanf thing so easily

Thank you in advance
sanjib
Associate III
Posted on April 03, 2014 at 17:22

I am connecting in this way

first i tried to with the flash downloader demonstrator but it gives the following error

''o response from the target the boot loader cannot be started. Please verify the boot mode configuration and theflash  protection status. Reset your device and then try again. ''

then i tried in the following way

.) Disconnect your board from usb or other voltage supply.

2.) Connect the BOOT0 Pin with High (3V).

3.) Plugin power/usb cable again.

4.) Start the st link utility (connect under reset) and erase the chip

5.) Disconnect the usb again.

6.) Disconnect the BOOT0 from High (3V).

7.) Plugin the USB, and check with the coocox ide whether it is downloading the code into flash or not but it's not.

Posted on April 03, 2014 at 17:26

Issues you have with CooCox will need to be discussed with them, on their forum. There is very little support here for their tool-chain.

Make sure they are using current DLL's for ST-LINK functionality.

If you break PA14 the SWD/JTAG debug attachment is going to fail. Your code will be very difficult to debug. Perhaps you can add a code path to catch a GPIO state or button push, so that it doesn't modify PA14?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on April 03, 2014 at 17:30

Ok, but that doesn't help me understand the wiring of the board. I assume you don't have a reset button, as you keep plugging in/out. An SWD connection with NRST should be able to get a BOOT0 strapped board into System Loader mode.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
sanjib
Associate III
Posted on April 03, 2014 at 17:30

I am not doing anything with UART PA(/PA10 pin will I have to do anything I am just connecting BOOT0 to 3v and doing it if anything else is required please help me

Posted on April 03, 2014 at 17:32

Ok, so how then is the Flash Loader Demonstrator expected to connect? I'm confused.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on April 03, 2014 at 17:36

The purpose of pulling BOOT0 high is to cause it to run the System Loader code from ROM, rather than your user code in FLASH which is breaking the SWCLK connectivity.

When the processor is reset, during the programming phase, it may well end up running the code breaking the PA14 connection, before it wrestles control. I might add a significant delay, or a GPIO check, prior to breaking PA14.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
sanjib
Associate III
Posted on April 03, 2014 at 17:38

will i have to connect PA9/PA10 pin if yes where ? I thought only BOOT0 pin to connect with 3v as steps mentioned by fm . I dont know if anything else is required . I was not able to continue with flash downloader demonstrator I was receiving error ehich I already mentioned. What I have to do inorder to make it work please suggest

Posted on April 03, 2014 at 18:23

I wouldn't bother with the Flash Loader Demonstrator, you've clearly not understood it's mode of connectivity.

If the ST-LINK utilities work, use those. If CooCox works when you don't break PA14, use that. If CooCox is failing in some other way, converse with their Support.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
sanjib
Associate III
Posted on April 04, 2014 at 07:13

I want to try once with flash loader demonstrator please help give a step by step description of connectivity so that I an try screen shot will be more good

Thanks in advance