Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit bd37f13

Browse files
committed
stm32f1: Hardcode GD32VW553 memory map
1 parent 116a72e commit bd37f13

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/target/stm32f1.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,10 @@ static void gd32vf1_detach(target_s *const target)
398398
bool gd32vw5_probe(target_s *const target)
399399
{
400400
const uint16_t device_id = target_mem32_read32(target, GD32E5_DBGMCU_BASE) & 0xfffU;
401-
const uint32_t signature = target_mem32_read32(target, GD32Fx_FLASHSIZE);
402-
const uint16_t flash_size = signature & 0xffffU;
403-
const uint16_t ram_size = signature >> 16U;
401+
/* Either 2 or 4 MiB of main SiP Flash */
402+
const uint16_t flash_size = 4096U;
403+
/* SRAM0/1/2 each 64 KiB, SRAM3 128 KiB (96+32 shared) */
404+
const uint16_t ram_size = 320U;
404405
DEBUG_WARN("Stub for detection of GD32VW553. DBG_ID=0x%x, RAM=%u, flash=%u\n", device_id, ram_size, flash_size);
405406
target->driver = "GD32VW5";
406407
target->part_id = device_id;

0 commit comments

Comments
 (0)