This is an automated email from Gerrit.

Tomas Vanek ([email protected]) just uploaded a new patch set to Gerrit, which you 
can find at http://openocd.zylin.com/3382

-- gerrit

commit eb64dae8cf0518435ad5d493ea0ad55339292bf7
Author: Tomas Vanek <[email protected]>
Date:   Thu Mar 10 18:24:45 2016 +0100

    flash Kinetis: remove TARGET_HALTED halted check from probe
    
    There is no reason why not probe running target.
    Initial gdb connect to running target is now possible without
    halt in gdb-attach event.
    
    Change-Id: Iacc4a231587d378168b18db871582f1086504831
    Signed-off-by: Tomas Vanek <[email protected]>

diff --git a/src/flash/nor/kinetis.c b/src/flash/nor/kinetis.c
index 7907b8c..3d2fa1c 100644
--- a/src/flash/nor/kinetis.c
+++ b/src/flash/nor/kinetis.c
@@ -1247,7 +1247,7 @@ static int kinetis_write(struct flash_bank *bank, const 
uint8_t *buffer,
        return ERROR_OK;
 }
 
-static int kinetis_read_part_info(struct flash_bank *bank)
+static int kinetis_probe(struct flash_bank *bank)
 {
        int result, i;
        uint32_t offset = 0;
@@ -1669,16 +1669,6 @@ static int kinetis_read_part_info(struct flash_bank 
*bank)
        return ERROR_OK;
 }
 
-static int kinetis_probe(struct flash_bank *bank)
-{
-       if (bank->target->state != TARGET_HALTED) {
-               LOG_WARNING("Cannot communicate... target not halted.");
-               return ERROR_TARGET_NOT_HALTED;
-       }
-
-       return kinetis_read_part_info(bank);
-}
-
 static int kinetis_auto_probe(struct flash_bank *bank)
 {
        struct kinetis_flash_bank *kinfo = bank->driver_priv;

-- 

------------------------------------------------------------------------------
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