File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed
encrypted/hello_encrypted Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ pico_embed_pt_in_binary(enc_bootloader ${CMAKE_CURRENT_LIST_DIR}/enc-pt.json)
50
50
51
51
# create absolute uf2, and package in flash
52
52
pico_set_uf2_family (enc_bootloader "absolute" )
53
- pico_package_uf2_output (enc_bootloader 0x10000000 )
53
+ pico_package_uf2_output (enc_bootloader )
54
54
55
55
# optionally enable USB output in addition to UART
56
56
# pico_enable_stdio_usb(enc_bootloader 1)
@@ -86,7 +86,7 @@ pico_hash_binary(hello_serial_enc)
86
86
pico_encrypt_binary (hello_serial_enc ${CMAKE_CURRENT_LIST_DIR} /privateaes.bin ${CMAKE_CURRENT_LIST_DIR} /ivsalt.bin )
87
87
88
88
# package uf2 in flash
89
- pico_package_uf2_output (hello_serial_enc 0x10000000 )
89
+ pico_package_uf2_output (hello_serial_enc )
90
90
91
91
# optionally enable USB output in addition to UART
92
92
# pico_enable_stdio_usb(hello_serial_enc 1)
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ target_link_libraries(uart_binary pico_stdlib)
29
29
pico_set_binary_type (uart_binary no_flash )
30
30
31
31
# package uf2 in flash
32
- pico_package_uf2_output (uart_binary 0x10000000 )
32
+ pico_package_uf2_output (uart_binary )
33
33
34
34
# create map/bin/hex/uf2 file etc.
35
35
pico_add_extra_outputs (uart_binary )
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ pico_encrypt_binary(hello_encrypted
38
38
EMBED )
39
39
40
40
# package uf2 in flash
41
- pico_package_uf2_output (hello_encrypted 0x10000000 )
41
+ pico_package_uf2_output (hello_encrypted )
42
42
43
43
# create map/bin/hex/uf2 file etc.
44
44
pico_add_extra_outputs (hello_encrypted )
@@ -86,7 +86,7 @@ pico_encrypt_binary(hello_encrypted_mbedtls
86
86
OTP_KEY_PAGE 29 )
87
87
88
88
# package uf2 in flash
89
- pico_package_uf2_output (hello_encrypted_mbedtls 0x10000000 )
89
+ pico_package_uf2_output (hello_encrypted_mbedtls )
90
90
91
91
# create map/bin/hex/uf2 file etc.
92
92
pico_add_extra_outputs (hello_encrypted_mbedtls )
Original file line number Diff line number Diff line change @@ -51,8 +51,9 @@ function(pico_add_extra_outputs TARGET)
51
51
if (NOT (PICO_PLATFORM MATCHES rp2040 ))
52
52
get_target_property (BINARY_TYPE ${SOURCE_TARGET} PICO_TARGET_BINARY_TYPE )
53
53
if (${BINARY_TYPE} STREQUAL "no_flash" )
54
- message ("Packaging no_flash universal binary to SRAM, so it has a load_map" )
55
- pico_package_uf2_output (${SOURCE_TARGET} 0x20000000 )
54
+ message ("Ensuring no_flash universal binary has a load_map" )
55
+ # This is required so it is copied to the correct location in SRAM
56
+ pico_ensure_load_map (${SOURCE_TARGET} )
56
57
endif ()
57
58
endif ()
58
59
_pico_add_extra_outputs (${SOURCE_TARGET} )
You can’t perform that action at this time.
0 commit comments