Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.
Merged
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
2 changes: 1 addition & 1 deletion src/target/ch32f1.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ static bool ch32f1_flash_busy_wait(target_s *const target)
static bool ch32f1_flash_eop_wait(target_s *const target)
{
uint32_t status = CH32F1_FLASH_STATUS_EOP;
while (status & CH32F1_FLASH_STATUS_EOP) {
while (!(status & CH32F1_FLASH_STATUS_EOP)) {
status = target_mem32_read32(target, CH32F1_FLASH_STATUS);
if (target_check_error(target)) {
DEBUG_ERROR("ch32f1 flash write: comm error\n");
Expand Down
Loading