Skip to content

Commit ca0c0db

Browse files
Fix GCC14.1 compile error in w25x10cls.S (#2000)
GCC14 doesn't like the 2-character temporary label "00" and throws an error .../pico-sdk/src/rp2040/boot_stage2/boot2_w25x10cl.S: Assembler messages: .../pico-sdk/src/rp2040/boot_stage2/boot2_w25x10cl.S:147: Error: junk at end of line, first unrecognized character is `0' .../pico/rp2040/pico-sdk/src/rp2040/boot_stage2/boot2_w25x10cl.S:150: Error: garbage following instruction -- `beq 00b' Convert it to a single number, "1", like in other boot2xxx.S files Fixes #1999
1 parent e48a2e1 commit ca0c0db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rp2040/boot_stage2/boot2_w25x10cl.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ regular_func _stage2_boot
144144
// status register and checking for the "RX FIFO Not Empty" flag to assert.
145145

146146
movs r1, #SSI_SR_RFNE_BITS
147-
00:
147+
1:
148148
ldr r0, [r3, #SSI_SR_OFFSET] // Read status register
149149
tst r0, r1 // RFNE status flag set?
150-
beq 00b // If not then wait
150+
beq 1b // If not then wait
151151

152152
// At this point CN# will be deasserted and the SPI clock will not be running.
153153
// The Winbond WX25X10CL device will be in continuous read, dual I/O mode and

0 commit comments

Comments
 (0)