diff options
author | Rémi PRUD’HOMME <prudhomme.remi@gmail.com> | 2015-01-20 14:23:08 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2015-02-04 21:56:13 +0000 |
commit | fb1b388dea19b7268eab53c04957c47c23d73913 (patch) | |
tree | 912e891fda1059f8738799f9ba37148c48212bb5 | |
parent | 5ffe5b9b2cb6a265588f0b7ea6744e0aff86d8dc (diff) | |
download | riscv-openocd-fb1b388dea19b7268eab53c04957c47c23d73913.zip riscv-openocd-fb1b388dea19b7268eab53c04957c47c23d73913.tar.gz riscv-openocd-fb1b388dea19b7268eab53c04957c47c23d73913.tar.bz2 |
Subject: [PATCH] update src/flash/nor/stm32f2x.c
Add the new STM32F446 mcu with 512 Ko
Tested with a eval board
Change-Id: I0c16ce7d32d249c7634d697815207c20e7f778c4
Signed-off-by: prudhomme.remi@gmail.com
Reviewed-on: http://openocd.zylin.com/2484
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
-rw-r--r-- | src/flash/nor/stm32f2x.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/flash/nor/stm32f2x.c b/src/flash/nor/stm32f2x.c index 422eac1..018156e 100644 --- a/src/flash/nor/stm32f2x.c +++ b/src/flash/nor/stm32f2x.c @@ -781,6 +781,7 @@ static int stm32x_probe(struct flash_bank *bank) break; case 0x431: case 0x433: + case 0x421: max_flash_size_in_kb = 512; break; default: @@ -929,7 +930,15 @@ static int get_stm32x_info(struct flash_bank *bank, char *buf, int buf_size) break; } break; + case 0x421: + device_str = "STM32F446"; + switch (rev_id) { + case 0x1000: + rev_str = "A"; + break; + } + break; case 0x423: case 0x431: case 0x433: |