-
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
Interrupts are disabled when debugging on chip using st-util: STM32F071V6T6 #266
Comments
It is expected that interrupts do not fire when single stepping through instructions. They should fire if execution is continued (perhaps with breakpoints set). |
I understand that well. The problem is that interrupts are completely disabled (no systick, no timers, nothing) even when execution is continued. But everything is fine with the same code when I disconnect the debugger and reset the target (even without flashing it with st-flash). |
Ah, I am not sure then. |
Just checked with IAR under Windows, debugging works fine - all interrupts work as expected. Please suggest any workaround for st-util... |
Latest OpenOCD also works fine, so it seems that this is a bug in st-util |
got the same problem with STM32F051 - systick not running while connected to gdb via st-util. |
The gdb-server stubs in |
I think i am running into the same issue with an stm32f072. When i flash the device with st-flash all interrupts seem to be disabled. When i remove the st link and reset my board everything works. |
this fixed it for me (it seems like my cheap st link clone has no proper reset connection?!)
i got it from this issue: #220 |
Closed by #341. |
Firmware works fine when uploaded to target using st-flash but when uploading and debugging the same code using st-util as gdb server all interrupts become disabled.
st-util output:
2014-09-24T23:39:15 INFO src/stlink-common.c: Loading device parameters....
2014-09-24T23:39:15 INFO src/stlink-common.c: Device connected is: F07x device, id 0x20016448
2014-09-24T23:39:15 INFO src/stlink-common.c: SRAM size: 0x4000 bytes (16 KiB), Flash: 0x10000 bytes (64 KiB) in pages of 2048 bytes
2014-09-24T23:39:15 INFO gdbserver/gdb-server.c: Chip ID is 00000448, Core ID is 0bb11477.
2014-09-24T23:39:15 INFO gdbserver/gdb-server.c: Target voltage is 2877 mV.
2014-09-24T23:39:15 INFO gdbserver/gdb-server.c: Listening at *:4242...
2014-09-24T23:39:24 ERROR gdbserver/gdb-server.c: [FP_CTRL] = 0x00000041 expecting 0x00000261
2014-09-24T23:39:24 INFO gdbserver/gdb-server.c: GDB connected.
I'm using STM32F4DISCOVERY board's st-link (target voltage is not connected to the st-link MCU by default).
Maybe this chip is not supported yet (FP_CTRL mismatch)?
Is there any quick workaround?
The text was updated successfully, but these errors were encountered: