This is an automated email from Gerrit. Andrey Smirnov ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/2032
-- gerrit commit 4edb06f8c83e9ea5a87265addb0b2b53d26c6103 Author: Andrey Smirnov <[email protected]> Date: Sat Mar 8 12:48:56 2014 -0800 CMSIS-DAP: Propagate IDCODE information to TAP level Current version of the corresponding CMSIS-DAP code doesn't do anything useful with retrieved information besides displaying it. However this information is useful to other subsystems that rely on it for their functionality. One such example would be code that implements DAP security features for Kinetis K and L MCU's from Freescale(see dap_syssec_kinetis_mdmap in arm_adi_v5.c). Change-Id: Iddd385d6f95cf823cbf6d1eed1c88f25616f6e91 Signed-off-by: Andrey Smirnov <[email protected]> diff --git a/src/target/adi_v5_cmsis_dap.c b/src/target/adi_v5_cmsis_dap.c index 3ff5bfe..d43488a 100644 --- a/src/target/adi_v5_cmsis_dap.c +++ b/src/target/adi_v5_cmsis_dap.c @@ -311,8 +311,11 @@ static int cmsis_dap_init(struct command_context *ctx) status = cmsis_dap_queue_idcode_read(dap, &ack, &idcode); - if (status == ERROR_OK) + if (status == ERROR_OK) { + target->tap->hasidcode = true; + target->tap->idcode = idcode; LOG_INFO("IDCODE 0x%08" PRIx32, idcode); + } /* force clear all sticky faults */ cmsis_dap_queue_ap_abort(dap, &ack); -- ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
