Skip to main content
Associate
July 24, 2024
Question

DEV_TARGET_NOT_HALTED

  • July 24, 2024
  • 1 reply
  • 713 views

I have a problem with this part of the code that involves the HAL erase function. I want to calculate the sector address from the block number i, but after execution, I encounter an error during debugging: "target ST-LINK error (DEV_TARGET_NOT_HALTED)."  any one can you give me a solution please  1.png2.png

    1 reply

    KDJEM.1
    Technical Moderator
    August 12, 2024

    Hello @amine1 and welcome to the Community :),

     

    Could you please give more detail about the issue.

    Which STM32 MCU are you using?

    Are you use an ST board?

     

    Thank you.

    Kaouthar

    To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.