This is an automated email from Gerrit.

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

-- gerrit

commit a82a41bc67f330333adbddbaa16b5efc85b85fa9
Author: Juha Niskanen <[email protected]>
Date:   Tue Apr 25 09:07:58 2017 +0300

    stm32l4: support flashing L496 devices
    
    Change-Id: I3effc5b675c853433170391c5eaf46edc067b6e7
    Signed-off-by: Juha Niskanen <[email protected]>

diff --git a/src/flash/nor/stm32l4x.c b/src/flash/nor/stm32l4x.c
index 762df74..db68539 100644
--- a/src/flash/nor/stm32l4x.c
+++ b/src/flash/nor/stm32l4x.c
@@ -614,6 +614,7 @@ static int stm32l4_probe(struct flash_bank *bank)
 
        /* set max flash size depending on family */
        switch (device_id & 0xfff) {
+       case 0x461:
        case 0x415:
                max_flash_size_in_kb = 1024;
                break;
@@ -716,8 +717,12 @@ static int get_stm32l4_info(struct flash_bank *bank, char 
*buf, int buf_size)
        const char *device_str;
 
        switch (device_id) {
+       case 0x461:
+               device_str = "STM32L496/4A6";
+               break;
+
        case 0x415:
-               device_str = "STM32L4xx";
+               device_str = "STM32L475/476/486";
                break;
 
        case 0x435:

-- 

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to