From e9c02296f29de18a56ea109384fb9c375c072700 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sat, 14 Nov 2020 14:30:13 +0800 Subject: [PATCH] target: kinetis: add S32K118 This adds support for the NXP S32K118. This is an automotive-grade part that is derived from the Kinetis line, so it has a very similar interface to other parts in the family. Signed-off-by: Sean Cross --- src/target/kinetis.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/target/kinetis.c b/src/target/kinetis.c index 3b6abd9f..442eac8b 100644 --- a/src/target/kinetis.c +++ b/src/target/kinetis.c @@ -319,6 +319,13 @@ bool kinetis_probe(target *t) return false; } break; + case 0x118: /* S32K118 */ + t->driver = "S32K118"; + target_add_ram(t, 0x1ffffc00, 0x00000400); /* SRAM_L, 1 KB */ + target_add_ram(t, 0x20000000, 0x00005800); /* SRAM_H, 22 KB */ + kl_gen_add_flash(t, 0x00000000, 0x00040000, 0x800, K64_WRITE_LEN); /* P-Flash, 256 KB, 2 KB Sectors */ + kl_gen_add_flash(t, 0x10000000, 0x00008000, 0x800, K64_WRITE_LEN); /* FlexNVM, 32 KB, 2 KB Sectors */ + break; default: return false; }