cancel
Showing results for 
Search instead for 
Did you mean: 

Timeout during flash programming

timon1994
Associate II
Posted on June 10, 2012 at 19:46

Hello!

Hope you can help me to fix my problem.

St-Link didnt see STM32F4 Discovery, but I've tried[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Discovery/DispForm.aspx?ID=1944&RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Discovery/STM32F4DISCOVERY Cannot connect to the MCU device&Source=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder%3D/public/STe2ecommunities/mcu/Lists/STM32Discovery/STM32F4DISCOVERY%2520%2520%2520Cannot%2520connect%2520to%2520the%2520MCU%2520device%26FolderCTID%3D0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F%26TopicsView%3Dhttps://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/AllItems.aspx%26currentviews%3D376] this patch and now StLink utility connects to my board.

But now I've got an error message: Timeout during flash programming.

What should I do?

Thanks in advance.

#st-link-utility
14 REPLIES 14
timon1994
Associate II
Posted on June 11, 2012 at 23:23

Keil doesn't see board at all. No SWD Device or something like that.

I'll check SBs and board at all tomorrow. 

Anyway, thanks a lot for your answers)

frankmeyer9
Associate II
Posted on June 12, 2012 at 08:23

Keil doesn't see board at all. No SWD Device or something like that.

 

You would need an example project, and downloading/debugging it.

Check that the ST-Link debugger is selected in the project options->debug.

SWD mode needs to be set, too (options->debug, ''settings'' button).

When starting a debug session, you either get access to the uC, or get an error message.

However, you need a workable project before...

However, there ist still the option to check the hardware while trying to program via ST-Link Utility. I mean to check Vdd and all clocks with a scope. It really sounds strange that the communication gets lost midway.

Have you tried a mass erase via ST-Link Utility (Target->Erase Chip) ?

timon1994
Associate II
Posted on June 12, 2012 at 08:54

Mass erase works ok.

I've checked SBs, SB19, SB15, SB16 were closed instead of open. I've desoldered it, but board still not programming.

Oooops! Now I can see St-Link in Keil!!! Thanks a lot)

Debugging working fine, but I can't load HEX having ''Cant load file'' error. It's my fault, because I don't know how to make it ok.

Anyway, thank you a lot for your answers!)

waqas
Associate
Posted on October 24, 2012 at 13:54

Hi

I am having the same ''Timeout during flash programming'' problem with F4 discovery board. Any solution?

Thanks

Posted on October 24, 2012 at 16:46

I am having the same ''Timeout during flash programming'' problem with F4 discovery board. Any solution?

 

You could perhaps be more specific about your environment (OS, dev tools, drivers, etc) , explaining what you've tried so far. Has it worked before and stopped, or never worked?

You could try to install the most current drivers.

You could try to update to the most current firmware.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..