Binary file modified lib/rp2040/libbearssl.a
Binary file not shown.
Binary file modified lib/rp2040/libipv4-big.a
Binary file not shown.
Binary file modified lib/rp2040/libipv4-bt-big.a
Binary file not shown.
Binary file modified lib/rp2040/libipv4-bt.a
Binary file not shown.
Binary file modified lib/rp2040/libipv4-ipv6-big.a
Binary file not shown.
Binary file modified lib/rp2040/libipv4-ipv6-bt-big.a
Binary file not shown.
Binary file modified lib/rp2040/libipv4-ipv6-bt.a
Binary file not shown.
Binary file modified lib/rp2040/libipv4-ipv6.a
Binary file not shown.
Binary file modified lib/rp2040/libipv4.a
Binary file not shown.
Binary file modified lib/rp2040/libpico.a
Binary file not shown.
Binary file modified lib/rp2350-riscv/libbearssl.a
Binary file not shown.
Binary file modified lib/rp2350-riscv/libipv4-big.a
Binary file not shown.
Binary file modified lib/rp2350-riscv/libipv4-bt-big.a
Binary file not shown.
Binary file modified lib/rp2350-riscv/libipv4-bt.a
Binary file not shown.
Binary file modified lib/rp2350-riscv/libipv4-ipv6-big.a
Binary file not shown.
Binary file modified lib/rp2350-riscv/libipv4-ipv6-bt-big.a
Binary file not shown.
Binary file modified lib/rp2350-riscv/libipv4-ipv6-bt.a
Binary file not shown.
Binary file modified lib/rp2350-riscv/libipv4-ipv6.a
Binary file not shown.
Binary file modified lib/rp2350-riscv/libipv4.a
Binary file not shown.
Binary file modified lib/rp2350-riscv/libpico.a
Binary file not shown.
Binary file modified lib/rp2350/libbearssl.a
Binary file not shown.
Binary file modified lib/rp2350/libipv4-big.a
Binary file not shown.
Binary file modified lib/rp2350/libipv4-bt-big.a
Binary file not shown.
Binary file modified lib/rp2350/libipv4-bt.a
Binary file not shown.
Binary file modified lib/rp2350/libipv4-ipv6-big.a
Binary file not shown.
Binary file modified lib/rp2350/libipv4-ipv6-bt-big.a
Binary file not shown.
Binary file modified lib/rp2350/libipv4-ipv6-bt.a
Binary file not shown.
Binary file modified lib/rp2350/libipv4-ipv6.a
Binary file not shown.
Binary file modified lib/rp2350/libipv4.a
Binary file not shown.
Binary file modified lib/rp2350/libpico.a
Binary file not shown.
26 changes: 13 additions & 13 deletions libraries/I2S/src/pio_i2s.pio.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static const struct pio_program pio_i2s_mclk_program = {
.instructions = pio_i2s_mclk_program_instructions,
.length = 2,
.origin = -1,
.pio_version = 0,
.pio_version = pio_i2s_mclk_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down Expand Up @@ -67,7 +67,7 @@ static const struct pio_program pio_i2s_out_program = {
.instructions = pio_i2s_out_program_instructions,
.length = 8,
.origin = -1,
.pio_version = 0,
.pio_version = pio_i2s_out_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down Expand Up @@ -107,7 +107,7 @@ static const struct pio_program pio_i2s_out_swap_program = {
.instructions = pio_i2s_out_swap_program_instructions,
.length = 8,
.origin = -1,
.pio_version = 0,
.pio_version = pio_i2s_out_swap_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down Expand Up @@ -143,7 +143,7 @@ static const struct pio_program pio_tdm_out_program = {
.instructions = pio_tdm_out_program_instructions,
.length = 4,
.origin = -1,
.pio_version = 0,
.pio_version = pio_tdm_out_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down Expand Up @@ -179,7 +179,7 @@ static const struct pio_program pio_tdm_out_swap_program = {
.instructions = pio_tdm_out_swap_program_instructions,
.length = 4,
.origin = -1,
.pio_version = 0,
.pio_version = pio_tdm_out_swap_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down Expand Up @@ -217,7 +217,7 @@ static const struct pio_program pio_tdm_inout_program = {
.instructions = pio_tdm_inout_program_instructions,
.length = 6,
.origin = -1,
.pio_version = 0,
.pio_version = pio_tdm_inout_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down Expand Up @@ -255,7 +255,7 @@ static const struct pio_program pio_tdm_inout_swap_program = {
.instructions = pio_tdm_inout_swap_program_instructions,
.length = 6,
.origin = -1,
.pio_version = 0,
.pio_version = pio_tdm_inout_swap_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down Expand Up @@ -295,7 +295,7 @@ static const struct pio_program pio_lsbj_out_program = {
.instructions = pio_lsbj_out_program_instructions,
.length = 8,
.origin = -1,
.pio_version = 0,
.pio_version = pio_lsbj_out_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down Expand Up @@ -335,7 +335,7 @@ static const struct pio_program pio_lsbj_out_swap_program = {
.instructions = pio_lsbj_out_swap_program_instructions,
.length = 8,
.origin = -1,
.pio_version = 0,
.pio_version = pio_lsbj_out_swap_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down Expand Up @@ -375,7 +375,7 @@ static const struct pio_program pio_i2s_in_program = {
.instructions = pio_i2s_in_program_instructions,
.length = 8,
.origin = -1,
.pio_version = 0,
.pio_version = pio_i2s_in_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down Expand Up @@ -415,7 +415,7 @@ static const struct pio_program pio_i2s_in_swap_program = {
.instructions = pio_i2s_in_swap_program_instructions,
.length = 8,
.origin = -1,
.pio_version = 0,
.pio_version = pio_i2s_in_swap_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down Expand Up @@ -459,7 +459,7 @@ static const struct pio_program pio_i2s_inout_program = {
.instructions = pio_i2s_inout_program_instructions,
.length = 12,
.origin = -1,
.pio_version = 0,
.pio_version = pio_i2s_inout_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down Expand Up @@ -503,7 +503,7 @@ static const struct pio_program pio_i2s_inout_swap_program = {
.instructions = pio_i2s_inout_swap_program_instructions,
.length = 12,
.origin = -1,
.pio_version = 0,
.pio_version = pio_i2s_inout_swap_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down
2 changes: 1 addition & 1 deletion libraries/PDM/src/rp2040/pdm.pio.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static const struct pio_program pdm_pio_program = {
.instructions = pdm_pio_program_instructions,
.length = 2,
.origin = -1,
.pio_version = 0,
.pio_version = pdm_pio_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down
2 changes: 1 addition & 1 deletion libraries/Servo/src/servo.pio.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static const struct pio_program servo_program = {
.instructions = servo_program_instructions,
.length = 8,
.origin = -1,
.pio_version = 0,
.pio_version = servo_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down
8 changes: 4 additions & 4 deletions libraries/SoftwareSPI/src/spi.pio.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static const struct pio_program spi_cpha0_program = {
.instructions = spi_cpha0_program_instructions,
.length = 2,
.origin = -1,
.pio_version = 0,
.pio_version = spi_cpha0_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down Expand Up @@ -63,7 +63,7 @@ static const struct pio_program spi_cpha1_program = {
.instructions = spi_cpha1_program_instructions,
.length = 3,
.origin = -1,
.pio_version = 0,
.pio_version = spi_cpha1_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down Expand Up @@ -133,7 +133,7 @@ static const struct pio_program spi_cpha0_cs_program = {
.instructions = spi_cpha0_cs_program_instructions,
.length = 9,
.origin = -1,
.pio_version = 0,
.pio_version = spi_cpha0_cs_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down Expand Up @@ -176,7 +176,7 @@ static const struct pio_program spi_cpha1_cs_program = {
.instructions = spi_cpha1_cs_program_instructions,
.length = 9,
.origin = -1,
.pio_version = 0,
.pio_version = spi_cpha1_cs_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down
73 changes: 42 additions & 31 deletions libraries/WiFi/examples/BearSSL_Validation/certs.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,53 @@
const char* ssl_host = "www.akamai.com";
const uint16_t ssl_port = 443;

// openssl s_client -connect www.akamai.com:443 < /dev/null 2>/dev/null | openssl x509 -fingerprint -noout -in /dev/stdin | cut -f2 -d= | sed 's/^/const char fingerprint_ssl[] = "/' | sed 's/$/";/'
const char fingerprint_ssl[] = "D6:6C:EF:1A:8A:CE:27:18:D4:0C:83:2C:AE:4D:1B:B9:4C:B8:C9:83";

const char fingerprint_ssl [] PROGMEM = "48:EF:70:29:41:CE:64:C9:DF:57:A2:46:E8:34:E1:50:0B:70:AE:17";
const char pubkey_ssl [] PROGMEM = R"PUBKEY(
// openssl s_client -connect www.akamai.com:443 < /dev/null 2>/dev/null | openssl x509 -pubkey -noout
const char pubkey_ssl[] = R"PUBKEY(
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEiuc+zlu43bv55+s0Fj6RiBW+olZm
c/AkoTP48CFCIGP1DET7Oufx6oe63GIuBzdVfR5D6R2z818b5gY1o2lBxg==
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE2BD04+A9idhYCHJ4RBy2KHtvJAsz
KLkAzZOWDEqjNu4plNmiWMymBw0rJggZOU4/TE+a4KqzBgsus9QkFZh88w==
-----END PUBLIC KEY-----
)PUBKEY";
const char cert_CA [] PROGMEM = R"CERT(
// openssl s_client -connect www.akamai.com:443 < /dev/null 2> /dev/null | openssl x509

const char cert_CA[] = R"CERT(
-----BEGIN CERTIFICATE-----
MIIEvjCCA6agAwIBAgIQBtjZBNVYQ0b2ii+nVCJ+xD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CWX+lZtTzumyfCLphVwNl422qX5UwP5MDbAAAAGRuG8CMAAABAMASDBGAiEA
oSSK9/26Uk3fqp7btK2SaEyWM/u++sOZXMeEOefnKwUCIQCqKysJztOF58PueXeE
pLliBWZUnjUrvPIbtxp31gQQITANBgkqhkiG9w0BAQsFAAOCAQEAAoJryZtJc8oc
+hf5vflkW2w0PdJ5NpbmjZOMTyutBRaJpxrDqKnjKBEOp6liZ2pDbUngGAwLEM30
KRBwJCc44u7w8Kj/KOoIZFoh9SiONAEn1qXWF0nFkYAD8J8yYwzkJy7fa3sdodaI
ex5NJosK/tyXjEBOcTrBsXkzs55pjSi+KJiiOHs/hDuBdyDtJs1ENAOswd8AWMSk
S9WycNxxEFH9VQgwgUhaI5Lc9J8rt3IJur1wp1JoDwdjIhs1M0rofgdW716UpmQ9
visdfGu8fCAlDSBPPC6gUPlFGFf4ujUmprJyBQ5xsYva0sVqhGbaoxtV7FdMDJkg
nDRma+9lPA==
-----END CERTIFICATE-----
)CERT";
2 changes: 1 addition & 1 deletion libraries/lwIP_w55rp20/src/wiznet_pio_spi.pio.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static const struct pio_program wiznet_pio_spi_write_read_program = {
.instructions = wiznet_pio_spi_write_read_program_instructions,
.length = 9,
.origin = -1,
.pio_version = 0,
.pio_version = wiznet_pio_spi_write_read_pio_version,
#if PICO_PIO_VERSION > 0
.used_gpio_ranges = 0x0
#endif
Expand Down
402 changes: 201 additions & 201 deletions package/package_pico_index.template.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pico-sdk
Submodule pico-sdk updated 251 files
2 changes: 1 addition & 1 deletion platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ compiler.libbearssl="{runtime.platform.path}/lib/{build.chip}/libbearssl.a"
compiler.c.cmd={build.toolchain}-gcc
compiler.c.flags=-c {compiler.warning_flags} {compiler.defines} {compiler.flags} -MMD {compiler.includes} -std=gnu17 -g -pipe
compiler.c.elf.cmd={build.toolchain}-g++
compiler.c.elf.flags={compiler.warning_flags} {compiler.defines} {compiler.flags} {build.flags.optimize} -u _printf_float -u _scanf_float
compiler.c.elf.flags={compiler.warning_flags} {compiler.defines} {compiler.flags} {build.flags.optimize}
compiler.S.cmd={build.toolchain}-gcc
compiler.S.flags=-c {compiler.warning_flags} {compiler.defines} -g -x assembler-with-cpp -MMD {compiler.includes} {build.toolchainopts} -g
compiler.cpp.cmd={build.toolchain}-g++
Expand Down
2 changes: 1 addition & 1 deletion tools/libbearssl/bearssl
Submodule bearssl updated 1 files
+22 −0 conf/pico2rv.mk
72 changes: 38 additions & 34 deletions tools/libpico/make-libpico.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,45 @@ cd build-rp2040
CPU=rp2040 cmake ..
make -j

rm -rf boot
mkdir boot
cd boot
mkdir -p pico
touch pico/config.h
for type in boot2_generic_03h boot2_is25lp080 boot2_w25q080 boot2_w25x10cl; do
for div in 2 4; do
arm-none-eabi-gcc -march=armv6-m -mcpu=cortex-m0plus -mthumb -O3 \
-DNDEBUG -DPICO_FLASH_SPI_CLKDIV=$div \
-c "$PICO_SDK_PATH/src/rp2040/boot_stage2/$type.S" \
-I "$PICO_SDK_PATH/src/boards/include/boards/" \
-I "$PICO_SDK_PATH/src/rp2040/hardware_regs/include/" \
-I "$PICO_SDK_PATH/src/rp2_common/pico_platform/include/" \
-I "$PICO_SDK_PATH/src/rp2_common/boot_stage2/asminclude/" \
-I "$PICO_SDK_PATH/src/rp2040/pico_platform/include/" \
-I "$PICO_SDK_PATH/src/rp2040/boot_stage2/asminclude/" \
-I .
# The develop branch of the SDK seems to have busted the RP2040 boot2.S files.
# These don't change and aren't lkikely to get any new additions, so comment out
# for now and use the prior versions built under earlier SDK.
#rm -rf boot
#mkdir boot
#cd boot
#mkdir -p pico
#touch pico/config.h
#for type in boot2_generic_03h boot2_is25lp080 boot2_w25q080 boot2_w25x10cl; do
# for div in 2 4; do
# arm-none-eabi-gcc -march=armv6-m -mcpu=cortex-m0plus -mthumb -O3 \
# -DNDEBUG -DPICO_FLASH_SPI_CLKDIV=$div \
# -c "$PICO_SDK_PATH/src/rp2040/boot_stage2/$type.S" \
# -I "$PICO_SDK_PATH/src/boards/include/boards/" \
# -I "$PICO_SDK_PATH/src/rp2040/hardware_regs/include/" \
# -I "$PICO_SDK_PATH/src/rp2_common/pico_platform/include/" \
# -I "$PICO_SDK_PATH/src/rp2_common/boot_stage2/asminclude/" \
# -I "$PICO_SDK_PATH/src/rp2040/pico_platform/include/" \
# -I "$PICO_SDK_PATH/src/rp2040/boot_stage2/asminclude/" \
# -I .
#
# arm-none-eabi-gcc -march=armv6-m -mcpu=cortex-m0plus -mthumb -O3 \
# -DNDEBUG -Wl,--build-id=none --specs=nosys.specs -nostartfiles \
# -Wl,--script="$PICO_SDK_PATH/src/rp2040/boot_stage2/boot_stage2.ld" \
# -Wl,-Map=$type.$div.elf.map $type.o -o $type.$div.elf
#
# arm-none-eabi-objdump -h $type.$div.elf > $type.$div.dis
# arm-none-eabi-objdump -d $type.$div.elf >> $type.$div.dis
#
# arm-none-eabi-objcopy -Obinary $type.$div.elf $type.$div.bin
#
# python3 "$PICO_SDK_PATH/src/rp2040/boot_stage2/pad_checksum" \
# -s 0xffffffff $type.$div.bin ${type}_${div}_padded_checksum.S
# done
#done
#mv *.S ../../../../boot2/rp2040/.
#cd ../..

arm-none-eabi-gcc -march=armv6-m -mcpu=cortex-m0plus -mthumb -O3 \
-DNDEBUG -Wl,--build-id=none --specs=nosys.specs -nostartfiles \
-Wl,--script="$PICO_SDK_PATH/src/rp2040/boot_stage2/boot_stage2.ld" \
-Wl,-Map=$type.$div.elf.map $type.o -o $type.$div.elf

arm-none-eabi-objdump -h $type.$div.elf > $type.$div.dis
arm-none-eabi-objdump -d $type.$div.elf >> $type.$div.dis

arm-none-eabi-objcopy -Obinary $type.$div.elf $type.$div.bin

python3 "$PICO_SDK_PATH/src/rp2040/boot_stage2/pad_checksum" \
-s 0xffffffff $type.$div.bin ${type}_${div}_padded_checksum.S
done
done
mv *.S ../../../../boot2/rp2040/.

cd ../..
cd ..
rm -rf build-rp2350
mkdir build-rp2350
cd build-rp2350
Expand Down
2 changes: 0 additions & 2 deletions tools/platformio-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,6 @@ def is_pio_build():
LINKFLAGS=[
"@%s" % os.path.join(FRAMEWORK_DIR, "lib", chip, "platform_wrap.txt"),
"@%s" % os.path.join(FRAMEWORK_DIR, "lib", "core_wrap.txt"),
"-u_printf_float",
"-u_scanf_float",
# no cross-reference table, heavily spams the output
# "-Wl,--cref",
"-Wl,--no-warn-rwx-segments",
Expand Down