Skip to content

Update to Pico SDK 2.2.0 #14

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

Draft
wants to merge 227 commits into
base: zephyr
Choose a base branch
from
Draft

Conversation

ajf58
Copy link
Collaborator

@ajf58 ajf58 commented Jul 29, 2025

Raspberry Pi have updated the SDK to 2.2.0 (release notes at https://github.com/raspberrypi/pico-sdk/releases/tag/2.2.0) .

This PR merges in those changes into hal_rpi_pico.

This supersedes #10

kilograham and others added 30 commits November 25, 2024 00:44
* fix errors breaking extra_[cmake_]configs.py
* remove trailing whitespace which is confusing asciidoctor
* fix rp2xxx-specific -> rp2xxx_specific
* add missing xip_cache funcs to the combined docs
* Revert "fix errors breaking extra_[cmake_]configs.py"
* Fix typo in #define name
* Allow optional whitespace at the start of "commented out" config lines

Co-authored-by: Andrew Scheller <andrew.scheller@raspberrypi.com>
* Move rom_data_lookup code into rom_data_lookup_inline

Allows ROM data lookup from FLASH/RAM sensitive code

* Use rom_data_lookup_inline in flash_devinfo_ptr

Fixes bug introduced by raspberrypi#2082 where flash_devinfo_get_cs_size would use rom_data_lookup from flash during a __no_inline_not_in_flash_func
* ta_set_timeout can fail to set an alarm

If alarm_pool_irq_handler takes <1us between handling an alarm and
calling ta_set_timeout then no alarms will be set as it will appear as
if an earlier alarm is already armedi before the target time.

Make sure ta_set_timeout always leaves with an alarm set by checking the
armed status.

Fixes raspberrypi#2118

* ta_disable_irq_handler should unarm its timer
…pi#2150)

* convert windows path delimiter to posix (raspberrypi#2149)

* add explicite variable assignment for intermediate resource name conversion result (raspberrypi#2149)
remove incorrect pool parameter
We need to do this to avoid work_pending being set twice.

Fixes raspberrypi#2101
* Update Clang toolchain used by Bazel

* <time.h> include

* Sort includes

* Use libc timeval definition

* Disable unwinder linking for now

* Link libm
Signed-off-by: eng33 <eng33@waveshare.com>
Co-authored-by: eng33 <eng33@waveshare.com>
* Fix ta_wakes_up_on_or_before

Handle target in the past and running for > 2^32 us.

Fixes raspberrypi#2186

* Add test for ta_wakes_up_on_or_before fix
Address the review comment to fix conditional compilation syntax:
raspberrypi#1795 (review)
* Update cyw43 driver.

Fixes raspberrypi#2153

* Update cyw43 in bazel
* Remove deprecated uses of FetchContent_Populate

Cannot use MakeAvailable as the files shouldn't be added to the build, so instead uses the full signature for FetchContent_Populate

Fixes raspberrypi#2124

* Fix GIT_SUBMODULES_RECURSE for older CMake versions
… faster and hence further on RP2350, breaking a check which was wrong for larger inputs
* update tinyusb to 0.18

* update tinyusb also for bazel
We use a pio and dma to write to the cyw43 chip using spi. Normally you
write an address and then read the data from that address, so the pio
program does does a write then read.

If you just want to write data in the case of uploading firmware we
use the fdebug_tx_stall flag to work out if the pio has stalled waiting
to write more data.

The theory is that this flag will also get set if the bus is busy. So
we mistakenly think a write to cyw43 has completed.

Wait for the dma write to complete before waiting for the pio to stall.

Fixes raspberrypi#2206
* Update btstack

v1.6.2 plus one commit

* Update bazel for btstack

* Build changes for btstack v1.6.2
raspberrypi#2105)

* Release the lock in mbedtls_sha256_free if it was not released already. Requires making pico_sha256_unlock include-able. Fixes raspberrypi#2103.

* addres lock release API comment

* Fix description of pico_sha256_cleanup

---------

Co-authored-by: nils <nils@nils>
Co-authored-by: Peter Harper <peter.harper@raspberrypi.com>
lurch and others added 26 commits July 23, 2025 09:10
* Update and expand docs/weblinks_page.md

* Add link to RM2 datasheet too

* Updated shortlinks
…pberrypi#2586)

* Improve error code description for some cyw43 connection methods

Fixes raspberrypi#2564

* Apply suggestions from code review

Put error description on separate lines for clarity.

Co-authored-by: Andrew Scheller <lurch@durge.org>

---------

Co-authored-by: Andrew Scheller <lurch@durge.org>
* Improve rom_pick_ab_update_partition docs

* Some review fixups

Add more `\ref`s and tidy up wording

* Move function docs next to rom_pick_ab_partition

* Add \return to rom_pick_ab_partition docs

* Rename rom_pick_ab_update_partition -> rom_pick_ab_partition_during_update and replace "call"
* Improve pico_use_wifi_firmware_partition docs

* Replace assert with hard_assert

Fixes compilation warning about unused ret variable in release builds

* firmware -> wifi_firmware

* Maybe improve wording?

* Clarify TBYB, and add `-ux` to firmware load
* add some doxygen to hard_assert

* typo

Co-authored-by: Peter Harper <77111776+peterharperuk@users.noreply.github.com>

---------

Co-authored-by: Peter Harper <77111776+peterharperuk@users.noreply.github.com>
- Add missing libraries to docs/index.h
 - Remove duplicate libraries from docs/index.h
 - Add new script to match up doxygen groups with the PICO_CONFIG groups
)

extract_configs.py now supports reading min, max or default values
from a #define value (which reduces false-positives)
…#2588)

* Update docs, and add methods for new RP2350 dma_transfer modes
Update docs, and add methods for handling reversed/double-increment DMA

* Apply suggestions from code review

Co-authored-by: Andrew Scheller <andrew.scheller@raspberrypi.com>

* more review fixes

* add typedefs and rename dma_channel_config to be consistent

* Apply suggestions from code review

Co-authored-by: Andrew Scheller <andrew.scheller@raspberrypi.com>

* Apply suggestions from code review

Co-authored-by: Andrew Scheller <andrew.scheller@raspberrypi.com>

---------

Co-authored-by: Andrew Scheller <andrew.scheller@raspberrypi.com>
Co-authored-by: graham sanderson <graham.sanderson@raspberrypi.com>
Match changes made in 191f5ba to avoid Zephyr's definitions.

Signed-off-by: Andrew Featherstone <andrew.featherstone@gmail.com>
Match changes made in 191f5ba to avoid Zephyr's definitions.

Signed-off-by: Andrew Featherstone <andrew.featherstone@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.