Skip to content

Some rpi connect improvements - #792

Merged
will-v-pi merged 7 commits into
rpi-connect-previewfrom
will-rpi-connect-fixups
Sep 28, 2026
Merged

will-v-pi merged 7 commits into
rpi-connect-previewfrom
will-rpi-connect-fixups

Conversation

@will-v-pi

Copy link
Copy Markdown
Contributor
  • Add packaged SRAM demo, using wifi firmware in a partition
  • Add TBYB update binaries which are copied into the source tree for ease of use (or RPI_CONNECT_OTA_UPDATE_DIR if specified)
  • Add on-device binary for registration, for use when you can't do a host build (e.g. using VS Code extension) - takes the org token over USB/UART, and has embedded partition table combined with an ffs blob for wifi credentials
  • Update README.md with new instructions, including use of picotool otp load -s 0xc0 device-priv-key.pem to program ECC key instead of RAW, and remove the helper script now this is handled in picotool (rpi-connect-preview branch)
  • Add combined UF2s for flashing the partition table, initial binary, and ffs contents in one go, and remove the helper script now this is handled in CMake
  • Take wifi credentials from WIFI_SSID and WIFI_PASSWORD like other examples, and write these to the ffs blob - if these aren't provided the ffs blob will have empty files for them instead, so they can be written separately with a manually generated ffs blob

Makes it easier to add other variants of rpi_connect_ota_demo (e.g. no_flash signed/encrypted)
Add on-device registration binary, for use if no host build available

Update README.md with new instructions for provisioning using picotool, on-device registration, and combined UF2s

Delete partitioning and OTP writing scripts, now those are handled by combined UF2s and picotool
Should make it easier to use the update UF2s, can specify directory with RPI_CONNECT_OTA_UPDATE_DIR

Also sign the packaged binary with the example signing key
@will-v-pi
will-v-pi requested a review from timg236 September 24, 2026 17:24

@timg236 timg236 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks looks good

@@ -0,0 +1,8 @@
-----BEGIN EC PARAMETERS-----

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly worried about baking in a private key which people might blindly copy and paste

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is our usual example key (used in the encrypted binaries) - there is a check in the SDK that if you use it with pico_sign_binary anywhere outside pico-examples it prints a warning, so hopefully people notice that and don’t blindly use it.

Also remove leftover references to shell scripts, and emphasize that you should only upload updates to Pi Connect, never combined UF2s
@will-v-pi
will-v-pi merged commit 7eae626 into rpi-connect-preview Sep 28, 2026
4 checks passed
@will-v-pi
will-v-pi deleted the will-rpi-connect-fixups branch September 28, 2026 13:41
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.

2 participants