2014-08-28 03:08 AM
Hi,
I was uploading programs to Standard STM32F051R8 development board. While trying to upload the code, suddenly I have started getting an error message ''ST link No MCU Device found''. After I click on OK I got another message ''failed to load flash loader: C:\ProgramFiles\IAR-------Flashloader\ST\flashSTM32F05xx8.h''. Then click on OK will generate another error ''A fatal error has occurred, The debugger will terminate'' . I have removed and reinstalled the driver for STlink. I have used a pin near to BOOT0. Accidentally, if a high or low to BOOT0 will make any issues?????? Also I am able to upload the program with one condition. Hold the reset key, then upload the program and then release the reset button. This will upload program. can anybody share any solution????? #st-link-no-mcu-device-found2014-08-28 05:35 AM
Try using the ST-LINK Utilities, and the ''Connect Under Reset'' settings/options
2014-08-28 05:51 AM
Yes, I am able to connect the device with ''Connect Under Reset'' option(IAR as well as STLink utlity s/w). But the problem is, I am not able to stop the debugging in IAR. At that time error message bounces. Is there anything I can do with BOOT0 pin???? I think while connecting, I applied some high pulse to the BOOT0Pin (Not Sure).
2014-08-28 08:16 AM
BOOT0 and Connect Under Reset will allow you to erase errant user code that breaks the debugger.
Consider what you are doing to break normal debugger connectivity, ie reconfiguring SWD GPIO pins, going into low power modes (SWI), DMA, etc. Stuff that occurs early in the reset path as debugger attempts to wrestle control of the system. Disable things like ''Run to main()'' if there are issues in the Reset and SystemInit() paths.