WIP: Rasperry Pi Connect library preview #3202
No reviewers
Labels
No labels
bazel
bluetooth
board settings
boot_stage2
bug
build
c++
can't reproduce
clang
clib-interface
cmsis
code cleanliness
code size
compiler version issues
cyw43_driver
debug
discussion
documentation
duplicate
dynamic_clock
elf2uf2
enhancement
errata
filesystem
flash layout
floating point
FreeRTOS
hardware_adc
hardware_claim
hardware_clocks
hardware_dma
hardware_exception
hardware_flash
hardware_gpio
hardware_i2c
hardware_irq
hardware_pio
hardware_pwm
hardware_rcp
hardware_rtc
hardware_spi
hardware_sync
hardware_uart
hardware_vreg
hardware_watchdog
hardware_xosc
help wanted
host
IAR
installation
invalid
linker scripts
lto
lwip
mbedtls
missing API
needs reporter detail
networking
newlib
newlib-multicore
non-c
non-cmake
non-gcc
openocd
orphan PR
OS integration
pico_async_context
pico_base
pico_binary_info
pico_flash
picolibc
pico_lwip
pico_malloc
pico_multicore
pico_printf
pico_runtime
pico_stdio
pico_stdio_usb
pico_sync
pico_time
pico_util
pioasm
port
question
review
review2
rtos interop
runtime init
static library
svd
test
tinyusb
vscode
wifi integration
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-raspberrypi/pico-sdk!3202
Loading…
Reference in a new issue
No description provided.
Delete branch "rpi-connect-preview"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
APIs and integrations are subject to change
@ -0,0 +984,4 @@char sig_header[512];snprintf(sig_header, sizeof(sig_header),"X-Connect-Identity-Signature: %s", signature);additional_headers = curl_slist_append(additional_headers, sig_header);I think this needs the
Accept: */*header added, for on-device use?@ -0,0 +875,4 @@}}return 0;}Keys should be ECC, not RAW - I've added
picotoolsupport in https://github.com/raspberrypi/picotool/pull/362 forpicotool otp load -s 0xc0 device-priv-key.pemto go with this change@ -0,0 +156,4 @@return 0;}static char *ffs_get_string(uint8_t file_id) {This and
ffs_update_stringseem like useful functions (and is duplicated in the pico-example too) - could they be made public in thepico_ffslibrary instead?Preferably with the change I suggested in pico-examples to use
strndup(data, rc)instead, so it supports non-NUL-terminated strings, as those will be easier to provision@lurch suggested there might be a better name for this function - given it just creates a UF2 that overwrites the first 4k of wherever it ends up (start of flash, a partition, or an offset) maybe
pico_create_4k_overwrite_uf2?@ -0,0 +224,4 @@uint32_t last_sector_number = LAST_SECTOR_NUMBER(uf2_target_partition.permissions_and_location);uint32_t total_sector_count = 1 + last_sector_number - first_sector_number;uint32_t maximum_code_size = FLASH_SECTOR_SIZE * total_sector_count;uint32_t update_size = UF2_BLOCK_SIZE * fimg_state->total_num_blocks;This should be
UF2_DATA_PAGE_SIZE, as that's the size of the actual data being writtenView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.