-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add POWMAN_PASSWORD_BITS to pico_bootsel_via_double_reset. #2532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add POWMAN_PASSWORD_BITS to pico_bootsel_via_double_reset. #2532
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming this is correct (can't see any docs which say which regs need the password ;-) )
Section 6.4 from the good book for posterity: All registers with address offsets up to and including 0x000000ac are password protected. Therefore, the following writeable registers are unprotected and have 32-bit write access: • POWMAN_SCRATCH0 → POWMAN_SCRATCH7 Doesn’t help that this section lands on a page boundary and it looks like a formatting error leading into another list of registers right below... edit: of course I can’t judge ‘cos I looked at the bootrom code and only skimmed the docs until just now 🤣 |
Maybe it'd be better to use powman_set_bits ? 🤔 |
864e00c
to
bf5a5df
Compare
Agreed! And updated. Edit: I flew too close to the sun 😭 |
CI is failing with e.g.
|
yeah lets revert that last change, as it obviously breaks RP2040, and i don't know if it is worth having to do a platform test in the CMake and bazel |
Sorry @Gadgetoid for my duff suggestion 🤦♂️ |
Fix pico_bootsel_via_double_reset for RP2350. Signed-off-by: Phil Howard <[email protected]>
cbb0eb3
to
fb1f7be
Compare
It was a good and reasonable suggestions, but SDK says no 😆 Reverted and push'd! |
yeah it was a good suggestion, and probably hit back in the day too! |
Fix pico_bootsel_via_double_reset for RP2350.
Was borrowing this code for a USB MSC user boot toggle. Found it didn't work, delved into the bootloader and found:
https://github.com/raspberrypi/pico-bootrom-rp2350/blob/fd6104450fa8f55c11c0c9b54dbc69a27537130f/src/main/arm/varm_boot_path.c#L774