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

Commit aa0a072

Browse files
committed
stm32f1: Hardcode GD32VW553 memory map
1 parent 7d51c11 commit aa0a072

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/target/stm32f1.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +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;
404-
DEBUG_WARN("Stub for detection of GD32VW553. DBG_ID=0x%x, RAM=%u, flash=%u\n", device_id, ram_size, flash_size);
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;
405405
target->driver = "GD32VW5";
406406
target->part_id = device_id;
407407
target_add_ram32(target, STM32F1_SRAM_BASE, ram_size * 1024U);

0 commit comments

Comments
 (0)