This is an automated email from Gerrit.

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

-- gerrit

commit 804fcf88df5e2271aadcc3787d9568d0e647386a
Author: Uwe Bonnes <[email protected]>
Date:   Wed Mar 2 13:11:48 2016 +0100

    stm32f2x.c: Add more F4 devices.
    
    Taken from git://git.ac6.fr/openocd commit e8ed67c42227b7072
    STM32F446 (0x434) now is's own case.
    
    Change-Id: I5061db7102b4c923c9f39d3d2f0cc69d29fca0a4
    Signed-off-by: Uwe Bonnes <[email protected]>

diff --git a/src/flash/nor/stm32f2x.c b/src/flash/nor/stm32f2x.c
index 5fb2c7e..c285847 100644
--- a/src/flash/nor/stm32f2x.c
+++ b/src/flash/nor/stm32f2x.c
@@ -787,6 +787,7 @@ static int stm32x_probe(struct flash_bank *bank)
        switch (device_id & 0xfff) {
        case 0x411:
        case 0x413:
+       case 0x441:
                max_flash_size_in_kb = 1024;
                break;
        case 0x419:
@@ -801,6 +802,9 @@ static int stm32x_probe(struct flash_bank *bank)
        case 0x421:
                max_flash_size_in_kb = 512;
                break;
+       case 0x458:
+               max_flash_size_in_kb = 128;
+               break;
        case 0x449:
                max_flash_size_in_kb = 1024;
                max_sector_size_in_kb = 256;
@@ -953,7 +957,6 @@ static int get_stm32x_info(struct flash_bank *bank, char 
*buf, int buf_size)
 
        case 0x413:
        case 0x419:
-       case 0x434:
                device_str = "STM32F4xx";
 
                switch (rev_id) {
@@ -990,6 +993,8 @@ static int get_stm32x_info(struct flash_bank *bank, char 
*buf, int buf_size)
        case 0x423:
        case 0x431:
        case 0x433:
+       case 0x458:
+       case 0x441:
                device_str = "STM32F4xx (Low Power)";
 
                switch (rev_id) {
@@ -1016,6 +1021,15 @@ static int get_stm32x_info(struct flash_bank *bank, char 
*buf, int buf_size)
                        break;
                }
                break;
+       case 0x434:
+               device_str = "STM32F46x/F47x";
+
+               switch (rev_id) {
+               case 0x1000:
+                       rev_str = "A";
+                       break;
+               }
+               break;
 
        default:
                snprintf(buf, buf_size, "Cannot identify target as a 
STM32F2/4/7\n");

-- 

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to