-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
boards: waveshare: rp2040_zero: Initial support #79447
Conversation
Hello @icpmoles, and thank you very much for your first pull request to the Zephyr project! |
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.
config RP2_FLASH_W25Q080 | ||
default y | ||
|
||
|
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.
config I2C_DW_CLOCK_SPEED | ||
default 125 | ||
|
||
endif #I2C_DW |
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.
endif #I2C_DW | |
endif # I2C_DW |
default 125 | ||
|
||
endif #I2C_DW | ||
|
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.
Using UF2 | ||
--------- | ||
|
||
Since it doesn’t expose the SWD pins, you must flash the RP2040-Zero with an UF2 file. By default, building an app for this board will generate a build/zephyr/zephyr.uf2 file. If the RP2040-Zero is powered on with the BOOTSEL button pressed, it will appear on the host as a mass storage device. The UF2 file should be drag-and-dropped to the device, which will flash the RP2040-Zero. |
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.
west flash
should also work
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.
Can it work without the SWD pins exposed? For similarly shaped rp2040 boards that don't expose the debugger pins the Zephyr documentation only mention UF2 flashing.
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.
When you have a uf2 runner as the default, west flash will copy the uf2 file over, it has no need for SWD pins, they would only be used with runners that flash using that.
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.
Thanks for the explanation. I rewrote the section and now it mentions west flash
and the manual drag-and-drop.
b1ac3a5
to
aeb2208
Compare
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.
Minor nit. and please add a message to the commit to fix compliance issue
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.
code_partition has weird notation.
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.
LGTM
@nordicjm |
8f79949
to
ce20579
Compare
This PR adds supports for Waveshare RP2040 Zero Signed-off-by: Iacopo Moles <[email protected]>
Hi @icpmoles! To celebrate this milestone and showcase your contribution, we'd love to award you the Zephyr Technical Contributor badge. If you're interested, please claim your badge by filling out this form: Claim Your Zephyr Badge. Thank you for your valuable input, and we look forward to seeing more of your contributions in the future! 🪁 |
Adds initial support for Waveshare RP2040-Zero