Loading...
 
Skip to main content

System Workbench for STM32


Debug stays at Reset_Handler, step into/over buttons are disabled

Sorry diabolo38, I told a lie. I did change my OCD configuration file:

/# use hardware reset, connect under reset
/#reset_config srst_only srst_nogate
reset_config srst_nogate

However when I select "Use Local Script" in the Debug Configuration, I get the error "SCRIPT NOT FOUND".
So instead I have copied the configuration file to: /home/gateway/eclipse/plugins/fr.ac6.mcu.debug_1.11.0.201610101240/resources/openocd/scripts/st_board
The configuration file in the /st_board directory contains:

/# use hardware reset, connect under reset
reset_config srst_only srst_nogate

What I did need to do was comment out the reset command in /target/stm32f4x.cfg:

/# use hardware reset, connect under reset
/# connect_assert_srst needed if low power mode application running (WFI...)
/#reset_config srst_only srst_nogate connect_assert_srst

So it appears that all I have done to the OCD configuration is remove "connect_assert_srst".