Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8162

SDK • Re: RP2350 rollback bug?

$
0
0
Which debugger firmware do you recommend me for RP2350? I have 2 more Pico 2w that I can use as debugger. Any suggestion?
Pico2W is not the best choice, currently I am using a clone with RP2040 + yapicoprobe.
I will try later to see if images of official debugprobe, and yapicoprobe, can be loaded, and be somewhat functional on Pico2W (it's the bloody LED on W variants).
That's appreciated since I have never used the debugger for Pico , and I have not the hardware, only Pico 2w chips.
It looks like DEFAULT_BOOT_VERSION0 and DEFAULT_BOOT_VERSION1 are linked to represent a single value of 48 bits:
DEFAULT_BOOT_VERSION0 Default boot version thermometer counter, bits 23:0 (RBIT-3)
DEFAULT_BOOT_VERSION0_R1 Redundant copy of DEFAULT_BOOT_VERSION0
DEFAULT_BOOT_VERSION0_R2 Redundant copy of DEFAULT_BOOT_VERSION0
DEFAULT_BOOT_VERSION1 Default boot version thermometer counter, bits 47:24 (RBIT-3)
DEFAULT_BOOT_VERSION1_R1 Redundant copy of DEFAULT_BOOT_VERSION1
DEFAULT_BOOT_VERSION1_R2 Redundant copy of DEFAULT_BOOT_VERSION1
Shouldn't you have also a Version 2 present as you set up BOOT_FLAGS0.ROLLBACK_REQUIRED?
They are not really linked per se, they are just suggested locations that may be used for the counter. If you look at the table in the datasheet at page 417 you can see how the rollback counter is built, you can essentially define an arbitrary large counter from groups of 3 OTP row values. So you could also use VERSION0 and VERSION1 for different counters if you wanted to (no idea if the SDK supports this directly though).
Not sure what version 2 is referring to.
Which debugger firmware do you recommend me for RP2350? I have 2 more Pico 2w that I can use as debugger. Any suggestion?
The official debugprobe firmware should run on the Pico 2 as far as I'm aware (see bottom of the README): https://github.com/raspberrypi/debugprobe. Though the cleanest solution is probably the dedicated hardware one, in terms of wiring.
I have tried to set custom ROLLBACK ROWS 0x0c0 and 0x0c1 since Cmake build functions allows that also:
(pico_set_binary_version(<TARGET> [MAJOR
<version>] [MINOR <version>] [ROLLBACK
<version>] [ROLLBACK_ROWS <rows…>])

And didn't work. Should I try to add 3 otp rows since you comment the arbitrary large counter is based of 3 OTP row values?

It's really weird honestly, everything went as expected by the RP2350 datasheet specifications but it simply doesn't boot.

Statistics: Posted by vicenspb9 — Fri May 30, 2025 10:16 pm



Viewing all articles
Browse latest Browse all 8162

Trending Articles