From db8d80755f0f37ccba73b507a84918a88f2934a6 Mon Sep 17 00:00:00 2001 From: Mansour Behabadi Date: Mon, 3 Jul 2023 15:18:48 +1000 Subject: [PATCH] rp2040: add missing suffix to CMD_READ_STATUS --- targets/rp2040-boot-stage2.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/targets/rp2040-boot-stage2.S b/targets/rp2040-boot-stage2.S index 9cc2ce09..e5135c9d 100644 --- a/targets/rp2040-boot-stage2.S +++ b/targets/rp2040-boot-stage2.S @@ -63,7 +63,7 @@ // Expanded include files // #define CMD_WRITE_ENABLE 0x06 -#define CMD_READ_STATUS 0x05 +#define CMD_READ_STATUS1 0x05 #define CMD_READ_STATUS2 0x35 #define CMD_WRITE_STATUS1 0x01 #define CMD_WRITE_STATUS2 0x31 @@ -301,7 +301,7 @@ program_sregs: # endif // Poll status register for write completion 1: - movs r0, #CMD_READ_STATUS + movs r0, #CMD_READ_STATUS1 bl read_flash_sreg movs r1, #1 tst r0, r1