-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[reset] st-util can not debug stm32l43x reliably #692
Comments
This has been a long standing problem for users of the texane/stlink tooling. Nobody has yet come up with a solution and bug reports related to this are piling up. OpenOCD handles this a little different as you can chose connect-under-reset which is not currently possible as far as I know. |
I had the same problem. The Reference Manual says "A Flash empty check mechanism is implemented to force the boot from system Flash", which is at 0x1FFF0000. Although having the board programmed correctly ( i did check with the ST-Link Utility), it did not work. A power cycle fixed the problem, whereas connect-under-reset did not work. |
@Nightwalker-87 The problem is old enough version of tool. I did not specifically fixing this problem. Possible indirect fixes when rework reset or flash loaders. #1038 is not related with this issue. |
Yes it's an old version of the toolset, I know. I'll have a look in the project history for references. |
@Nightwalker-87 This is a different problem. The #1038 had regression problems when implementing st-link/v3. |
Since V1.8.0 has been installed, this seems pretty much rock solid or me. Thanks to whoever put the effort in- it's a different world now! Win10 |
@radsdau Can you give some more information on your hardware and what you tried out exactly? That would be great, thx. |
@Nightwalker-87 I am debugging a STM32L4Q5VGT6 with STLink-V3Mini. In V1.7 starting a debug session would fail about 50% of the time, as described in this bug report; it had halted in some unknown location (0x1FFFxxxx). I'd hit 'debug' again, it would go through the entire process, then work the next time. |
Ah, that does ring a bell indeed. I remember a very similar issue regarding the behaviour you just described. |
Did you compile binaries manually? Is there any chance to share them? |
@KlemenDEV They can be created following the instructions in our compiling instructions in /doc. |
This issue is now closed due to inactivity. |
I am using stm32l433_nucleo board. I need to debug this board in Linux(ubuntu16.04) frequently.
I have troubles with debugging using st-util:
st-util can not halt mcu reliably
frequently, when I start arm-none-eabi-gdb, I find the CPU is not halted as expected, shows:
0x1fff3f36 in ?? ()
then I will not be able to debug properly. Got to restart st-util several times to get it working again.
I can not load program as soon as gdb connect to st-util server
when I start gdb(with command: arm-none-eabi-gdb path/to/my/elf -ex "target extended-remote :4242"), I need to run "continue" command first, before I can "load" my program. Otherwise, debug won't work: I won't be able to stop(Ctrl-C) or set breakpoints properly.
tools version info:
arm-none-eabi-gdb: 7.10.1.20160923-cvs
st-util: 1.4.0-13-g1969148
What are the causes of these problems?
The text was updated successfully, but these errors were encountered: