From 2b06f045c442c676ecd8bac515b54f4d7321c89f Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Mon, 14 Dec 2020 10:22:56 +0800 Subject: [PATCH] target: kinetis: add S32K148 This adds support for the NXP S32K148. 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 442eac8..98f9f76 100644 --- a/src/target/kinetis.c +++ b/src/target/kinetis.c @@ -326,6 +326,13 @@ bool kinetis_probe(target *t) 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; + case 0x148: /* S32K148 */ + t->driver = "S32K148"; + target_add_ram(t, 0x1FFE0000, 0x20000); /* SRAM_L, 128 KB */ + target_add_ram(t, 0x20000000, 0x1f000); /* SRAM_H, 124 KB */ + kl_gen_add_flash(t, 0x00000000, 0x00180000, 0x1000, K64_WRITE_LEN); /* P-Flash, 1536 KB, 4 KB Sectors */ + kl_gen_add_flash(t, 0x10000000, 0x80000, 0x1000, K64_WRITE_LEN); /* FlexNVM, 512 KB, 4 KB Sectors */ + break; default: return false; }