Skip to content

Commit 8854725

Browse files
committed
Little extra fixes
1 parent 7f1be12 commit 8854725

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

bootloaders/encrypted/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ add_linker_script(enc_bootloader "0x20070000" "64k")
5353
pico_set_otp_key_output_file(enc_bootloader ${CMAKE_CURRENT_BINARY_DIR}/otp.json)
5454

5555
# sign, hash, and clear SRAM
56-
pico_sign_binary(enc_bootloader ${CMAKE_CURRENT_LIST_DIR}/private.pem)
56+
pico_sign_binary(enc_bootloader)
5757
pico_hash_binary(enc_bootloader)
5858
pico_load_map_clear_sram(enc_bootloader)
5959

@@ -87,7 +87,7 @@ pico_set_binary_type(hello_serial_enc no_flash)
8787
add_linker_script(hello_serial_enc "0x20000000" "448k")
8888

8989
# sign, hash, and encrypt
90-
pico_sign_binary(hello_serial_enc ${CMAKE_CURRENT_LIST_DIR}/private.pem)
90+
pico_sign_binary(hello_serial_enc)
9191
pico_hash_binary(hello_serial_enc)
9292
pico_encrypt_binary(hello_serial_enc ${CMAKE_CURRENT_LIST_DIR}/privateaes.bin)
9393

pico_w/wifi/CMakeLists.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ else()
1818
add_subdirectory_exclude_platforms(tcp_server)
1919
add_subdirectory_exclude_platforms(udp_beacon)
2020

21-
add_subdirectory_exclude_platforms(ota_update rp2040)
22-
2321
if (NOT PICO_MBEDTLS_PATH)
24-
message("Skipping tls examples as PICO_MBEDTLS_PATH is not defined")
22+
message("Skipping some examples as PICO_MBEDTLS_PATH is not defined")
2523
else()
2624
add_subdirectory_exclude_platforms(tls_client)
25+
add_subdirectory_exclude_platforms(ota_update rp2040)
2726
endif()
2827
endif()

pico_w/wifi/ota_update/main.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{
1313
"name": "Main A",
1414
"id": 0,
15-
"size": "1748K",
15+
"size": "1744K",
1616
"families": ["rp2350-arm-s", "rp2350-riscv"],
1717
"permissions": {
1818
"secure": "rw",
@@ -23,7 +23,7 @@
2323
{
2424
"name": "Main B",
2525
"id": 0,
26-
"size": "1748K",
26+
"size": "1744K",
2727
"families": ["rp2350-arm-s", "rp2350-riscv"],
2828
"permissions": {
2929
"secure": "rw",
@@ -35,14 +35,16 @@
3535
{
3636
"name": "Firmware A",
3737
"id": "0x123456789abcdef0",
38+
"start": "3500k",
3839
"size": "240K",
3940
"families": ["0x12345678"],
4041
"permissions": {
4142
"secure": "rw",
4243
"nonsecure": "rw",
4344
"bootloader": "rw"
4445
},
45-
"ignored_during_riscv_boot": true
46+
"ignored_during_riscv_boot": true,
47+
"no_reboot_on_uf2_download": true
4648
},
4749
{
4850
"name": "Firmware B",
@@ -55,7 +57,8 @@
5557
"bootloader": "rw"
5658
},
5759
"link": ["a", 2],
58-
"ignored_during_riscv_boot": true
60+
"ignored_during_riscv_boot": true,
61+
"no_reboot_on_uf2_download": true
5962
}
6063
]
6164
}

pico_w/wifi/ota_update/picow_ota_update.c

+1
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ err_t tcp_update_server_recv(void *arg, struct tcp_pcb *tpcb, struct pbuf *p, er
189189
// Write to flash
190190
struct cflash_flags flags;
191191
int8_t ret;
192+
(void)ret;
192193
if (block->target_addr / FLASH_SECTOR_ERASE_SIZE > state->highest_erased_sector) {
193194
flags.flags =
194195
(CFLASH_OP_VALUE_ERASE << CFLASH_OP_LSB) |

0 commit comments

Comments
 (0)