This is an automated email from Gerrit.

Mathias Küster (kes...@freenet.de) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/511

-- gerrit

commit 4fed2436fcfcff3e1ae0b40217d6a987fd2398e8
Author: Mathias K <kes...@freenet.de>
Date:   Sat Mar 10 14:24:09 2012 +0100

    stm32: determine all cpu types
    
    This patch determine all cpu types and not only
    the cortex M3.
    
    Change-Id: If689dd994b3855284b927fc4b206f420cf32b6c7
    Signed-off-by: Mathias K <kes...@freenet.de>

diff --git a/src/target/stm32_stlink.c b/src/target/stm32_stlink.c
index 171cc83..c23b439 100644
--- a/src/target/stm32_stlink.c
+++ b/src/target/stm32_stlink.c
@@ -269,9 +269,11 @@ static int stm32_stlink_examine(struct target *target)
                if (retval != ERROR_OK)
                        return retval;
 
-               if (((cpuid >> 4) & 0xc3f) == 0xc23)
-                       LOG_DEBUG("Cortex-M3 r%" PRId8 "p%" PRId8 " processor 
detected",
-                               (uint8_t)((cpuid >> 20) & 0xf), 
(uint8_t)((cpuid >> 0) & 0xf));
+               /* Get CPU Type */
+               i = (cpuid >> 4) & 0xf;
+
+               LOG_DEBUG("Cortex-M%d r%" PRId8 "p%" PRId8 " processor 
detected",
+                               i,(uint8_t)((cpuid >> 20) & 0xf), 
(uint8_t)((cpuid >> 0) & 0xf));
                LOG_DEBUG("cpuid: 0x%8.8" PRIx32 "", cpuid);
 
                /* Setup FPB */

-- 

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to