Skip to main content
NL.0
Associate II
August 16, 2019
Solved

Error in initializing ST-LINK error

  • August 16, 2019
  • 4 replies
  • 1478 views

Hello,

I am working with STM32F413H discovery board, it was working fine with inbuilt debugger but this reference board raising error like "Error in initializing ST-LINK error" while flashing.

After this I got better answer from ST employee that :

"If code on your device breaks the debug interface pins or powers down it won't be connectable.

Try "Connect Under Reset" options

Try pulling BOOT0 High so your code in FLASH doesn't run."

Here, can I make BOOT0 pin high while flashing right ? and after flashing can BOOT0 pin make it low? and can one elaborate "Connect Under Reset" options

IDE : STM32cube IDE

development board :STM32F413H

Best Regards,

Nitish

This topic has been closed for replies.
Best answer by Tesla DeLorean

Original thread https://community.st.com/s/question/0D50X0000BB1GRaSQN/error-in-final-launch-sequence-error-in-initializing-stlink-error

There are perhaps other failure mechanisms, but the BOOT0 High test at least establishes whether the user code in the part is the cause of the problem.

4 replies

Tesla DeLorean
Guru
August 16, 2019

I'm not an ST employee.

​

Use a jumper or link so that the pin is kept high. Erase the part or update the firmware, and perhaps consider what you are doing that is breaking the debug interface.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
August 16, 2019

Once you have applied your new software, remove the jumper so it can be run.

​

Under tools like the ST-LINK Utilities or Keil there is typically a connectivity mode, option or setting. Select the think that is equivalent to "Connect Under Reset", which means the tool holds the NRST pin low while trying to gain control of the part, whilst not permitting your broken code to execute.

​

If these things still confuse, perhaps a good reading of the technical docs are in order.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
NL.0
NL.0Author
Associate II
August 31, 2019

Thanks a lot Clive, Now our development board is ready to flash by making boot0 pin high and made it low again

Regards,

Nitish