2013-07-25 05:52 AM
Hi All,
I'm working on a STM32F0-Discovery kit. Until now, I could debug original code. I have succeed in loading the code which blinks an LED. I have even seen some minor modification's effect. I could have downloaded original code back.But as of today, I have formed a new directory and copied all the files in the SDK. I have modified the original program so that the LED mirror the user button. Compilation OK. However this time I start receiving ''flash timeout reset the target and try it again'' error message. When I decided to download the original program, I receive the same error message.My settings remain unchanged. Yesterday it was working now it doesn't.What can be possible cause and more importantly how I can overcome this bug?Thank you at advance for your co-operation. Best regards. #stm32f0discovery2013-07-25 07:27 AM
If you have jammed up the device with user code, then you can restart the board with BOOT0 strapped HIGH/VDD and it will start the System Loader instead of your code. Erase the code, and start over.
2014-10-01 07:30 AM
Try to check your Flash Load Algorithm.
2014-10-01 09:03 AM
Hi
''But as of today, I have formed a new directory and copied all the files in the SDK. I have modified the original program so that the LED mirror the user button. Compilation OK. However this time I start receiving ''flash timeout reset the target and try it again'' error message. When I decided to download the original program, I receive the same error message.'' You have not said which Integrated Development Environment (IDE) you are using. With these modern 'visual' IDEs you have to be careful. Many of the settings are hidden in configuration files. They must be set by using the drop down menus of the tool itself. Simply copying the original files into a new directory does NOT change the paths for your new project. Your new project will probably still be referring to the files in the original project. With these modern IDEs, they have the concept of a 'project' and each project have paths (directory paths) which need to be set correctly. Some will have paths to script for programming, it sounds like the path for the programming script is broken.