Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/target/stm32f1.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,10 @@ static void gd32vf1_detach(target_s *const target)
bool gd32vw5_probe(target_s *const target)
{
const uint16_t device_id = target_mem32_read32(target, GD32E5_DBGMCU_BASE) & 0xfffU;
const uint32_t signature = target_mem32_read32(target, GD32Fx_FLASHSIZE);
const uint16_t flash_size = signature & 0xffffU;
const uint16_t ram_size = signature >> 16U;
/* Either 2 or 4 MiB of main SiP Flash */
const uint16_t flash_size = 4096U;
/* SRAM0/1/2 each 64 KiB, SRAM3 128 KiB (96+32 shared) */
const uint16_t ram_size = 320U;
DEBUG_WARN("Stub for detection of GD32VW553. DBG_ID=0x%x, RAM=%u, flash=%u\n", device_id, ram_size, flash_size);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please drop this warning if you're hard-coding these bits - the line no longer serves a purpose.

target->driver = "GD32VW5";
target->part_id = device_id;
Expand Down
Loading