Skip to content

Commit 9d31f66

Browse files
oxplotdeadprogram
authored andcommitted
rp2040: add missing suffix to CMD_READ_STATUS
1 parent ff89fc4 commit 9d31f66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

targets/rp2040-boot-stage2.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
// Expanded include files
6464
//
6565
#define CMD_WRITE_ENABLE 0x06
66-
#define CMD_READ_STATUS 0x05
66+
#define CMD_READ_STATUS1 0x05
6767
#define CMD_READ_STATUS2 0x35
6868
#define CMD_WRITE_STATUS1 0x01
6969
#define CMD_WRITE_STATUS2 0x31
@@ -301,7 +301,7 @@ program_sregs:
301301
# endif
302302
// Poll status register for write completion
303303
1:
304-
movs r0, #CMD_READ_STATUS
304+
movs r0, #CMD_READ_STATUS1
305305
bl read_flash_sreg
306306
movs r1, #1
307307
tst r0, r1

0 commit comments

Comments
 (0)