This is an automated email from Gerrit.

Alexandre Abadie (alexandre.aba...@inria.fr) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/4491

-- gerrit

commit 617f005ac60d5ee8a469183c854a7e8e66d31c67
Author: Alexandre Abadie <alexandre.aba...@inria.fr>
Date:   Thu Apr 12 16:02:38 2018 +0200

    flash/nor/stm32l4x: handle stm32L4R5 device id
    
    Change-Id: I0753c5adc92b1b0a1abb97d2abd92a29a0669236
    Signed-off-by: Alexandre Abadie <alexandre.aba...@inria.fr>

diff --git a/src/flash/nor/stm32l4x.c b/src/flash/nor/stm32l4x.c
index e2710bd..17b2f43 100644
--- a/src/flash/nor/stm32l4x.c
+++ b/src/flash/nor/stm32l4x.c
@@ -618,6 +618,9 @@ static int stm32l4_probe(struct flash_bank *bank)
 
        /* set max flash size depending on family */
        switch (device_id & 0xfff) {
+    case 0x470:
+        max_flash_size_in_kb = 2048;
+        break;
        case 0x461:
        case 0x415:
                max_flash_size_in_kb = 1024;
@@ -727,6 +730,9 @@ static int get_stm32l4_info(struct flash_bank *bank, char 
*buf, int buf_size)
        const char *device_str;
 
        switch (device_id) {
+    case 0x470:
+        device_str = "STM32L4R5";
+        break;
        case 0x461:
                device_str = "STM32L496/4A6";
                break;

-- 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to