Hi,

first, thank you for openocd. This is great job!

I have an MPS2+ board form ARM

OpenOCD worked fine, but “reset”  or “reset halt” commands stalled the board. 
On the other hand, the “soft_reset_halt”  command worked fine.
I did a bit of debugging and found out that the reason for the stall was the 
call to function adapter_deassert_reset() in function cortex_m_deassert_reset  
in file cortex_m.c

So I did a quick fix and made this function call conditioned on SRST.

        /* deassert reset lines */
        if (jtag_reset_config & RESET_HAS_SRST) 
                adapter_deassert_reset();


I am not sure if that is a useful fix, bit now reset and  reset halt works fine 
on the MPS2+ board.




Best regards,
Rainer




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to