>>>>> "Tomas" == Tomas Vanek <[email protected]> writes:

    Tomas> It reminds me that flash could be probed on running target (at
    Tomas> least on most of Cortex M).  I removed the check if
    Tomas> (bank->target->state != TARGET_HALTED) { LOG_WARNING("Cannot
    Tomas> communicate... target not halted."); return
    Tomas> ERROR_TARGET_NOT_HALTED; } from kinetis_probe() and gdb happily
    Tomas> gets memory map with running target.  On the other hand, gdb
    Tomas> starts in unsynced state and it could be even more confusing for
    Tomas> less experienced user.

I vote for skipping the test above. Only on initial gdb connect, connection
is rejected because the device is not halted. On subsequent gdb connect,
openocd has already probed the device and will "happily get(s) memory map
with running target". So we have confusion anyway.

Bye

-- 
Uwe Bonnes                [email protected]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to