From 04b86f6eea1992f275a885e730e5de0497bc410e Mon Sep 17 00:00:00 2001 From: dragonmux Date: Tue, 9 Aug 2022 09:23:39 +0100 Subject: [PATCH] stm32g0: Cleaned up the STM32G0B_C memory map setup slightly --- src/target/stm32g0.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/target/stm32g0.c b/src/target/stm32g0.c index 37ed9c8..e2ab15f 100644 --- a/src/target/stm32g0.c +++ b/src/target/stm32g0.c @@ -229,8 +229,7 @@ bool stm32g0_probe(target *t) case STM32G0B_C: /* SRAM 144 kiB, Flash up to 512 kiB */ ram_size = RAM_SIZE_G0B_C; - flash_size = target_mem_read16(t, FLASH_MEMORY_SIZE); - flash_size *= 1024U; + flash_size = target_mem_read16(t, FLASH_MEMORY_SIZE) * 1024U; t->driver = "STM32G0B/C"; break; default: