Skip to main content
bsara.1
Associate
May 11, 2022
Question

I have bought new stm32l562E-DK board recently, I have written embedded rust code to blink an led. the compilation is proper binary file generated. When I Flash it is showing this error. Please help me out.

  • May 11, 2022
  • 13 replies
  • 3626 views

sarathk@sarath:~/Desktop/project/open_s_projects/rust_projects/stm32l/led_blink$ probe-run target/thumbv7em-none-eabihf/debug/led_blink --chip stm32l562qeixq

Error: Error while flashing

Caused by:

   0: Something during the interaction with the core went wrong

   1: An error with the usage of the probe occured

   2: Operation timed out

This topic has been closed for replies.

13 replies

Bob S
Super User
May 11, 2022

Need more information. See if there is a debugger/programmer log file that shows all the actions and responses. Or see if there is a command option to generate such a log file. Then post that here.

bsara.1
bsara.1Author
Associate
May 11, 2022

0693W00000NpnOpQAJ.png0693W00000NpnOVQAZ.png 

I am loading the blinking program.

Tesla DeLorean
Guru
May 11, 2022

The ST-LINK Utilities have been deprecated for several years, use the STM32 Cube Programmer tool, it should be new enough to support L5 parts

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
bsara.1
bsara.1Author
Associate
May 12, 2022

Thank you, I also tried with with stm32 Cube programmer tool. The same error I am getting. Is it a hard ware issue?

Bob S
Super User
May 12, 2022

Did you try enabling "connect under reset" as suggested in the 2nd image you posted?

Is this the first time you've tried programming this board? Or were you able to load a program before and now it fails?

Did the board run with the pre-installed demo firmware? (I'm not familiar with this exact board, but they usually come with some kind of demo installed on them).

bsara.1
bsara.1Author
Associate
May 16, 2022

I have connected under reset, it is showing the same issue.

Yes this first time programming the board.

That is I am not sure. When I press reset button LD4, LD5,LD6 and LD7 glows in sequence and stops. Finally the LD9, LD10 and LD5 are on.

bsara.1
bsara.1Author
Associate
May 16, 2022

?

Piranha
Principal III
May 21, 2022

Mode: Under reset

Reset mode: Hardware reset