Skip to main content
Visitor II
August 6, 2021
Question

STLINK-V3MINI issue in debug mode.

  • August 6, 2021
  • 1 reply
  • 1778 views

I am using STLINK-V3MINI with STM32IDE. After compiling the program, when I start debug it first goes to start, run as per given commands but it goes HALT after few steps. Somehow program flow reach into undesirable location. 

Kindly check the attached log and suggest.

    This topic has been closed for replies.

    1 reply

    Super User
    August 8, 2021

    Did you try a minimal "blinky" example? Is it a new board bringup or a known good board? Did you try STM32Programmer instead of IDE?

    ABans.11Author
    Visitor II
    August 10, 2021

    This is customized board and operated without external crystal. I did not try STM32Programmer but I am able to download .hex file via STM32 ST-Link Utility.

    I have tried smallest as well as quiet big program and feel that after few instruction or (CPU timing) it reached into some undesirable locations but not able to link to each other. For your reference please check the attached logs.

    Super User
    August 10, 2021

    Could be either an unrelieable ST-LINK connection or some software issue with your code. You could (drastically) reduce the ST-LINK clock freq. to increase stability of ST-LINK for testing. Testing could be done by reading larger portions of memory again and again while the CPU is halted, thereby generating ST-LINK traffic without code execution.

    The software issues could be a hard fault or wild-running code caused by an improper linker file (.ld) or bad startup code. Does you code reach main() at all?