aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMansour Behabadi <[email protected]>2023-07-03 15:18:48 +1000
committerRon Evans <[email protected]>2023-07-03 10:52:33 +0200
commitdb8d80755f0f37ccba73b507a84918a88f2934a6 (patch)
treea158c76bd47c25b6ee78792b3509bf5842c30b2a
parentdc91c96305eaef38e55ff6715597de2f62565a78 (diff)
downloadtinygo-db8d80755f0f37ccba73b507a84918a88f2934a6.tar.gz
tinygo-db8d80755f0f37ccba73b507a84918a88f2934a6.zip
rp2040: add missing suffix to CMD_READ_STATUS
-rw-r--r--targets/rp2040-boot-stage2.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/targets/rp2040-boot-stage2.S b/targets/rp2040-boot-stage2.S
index 9cc2ce09b..e5135c9d4 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