2021-08-06 12:13 AM
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.
2021-08-08 02:06 AM
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?
2021-08-10 01:00 AM
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.
2021-08-10 06:33 AM
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?
2021-08-10 06:53 AM