File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,6 +40,24 @@ if (NOT PICO_RP2040)
4040 set_target_properties (low_power_test_timers_encrypted PROPERTIES PICO_TEST_BUDDY_FILE external_sleep_timer.elf)
4141 # create map/bin/hex file etc.
4242 pico_add_extra_outputs (low_power_test_timers_encrypted )
43+
44+ add_executable (low_power_test_timers_encrypted_xip_sram
45+ low_power_test_timers.c
46+ )
47+ target_link_libraries (low_power_test_timers_encrypted_xip_sram low_power_test_common )
48+ pico_set_binary_type (low_power_test_timers_encrypted_xip_sram no_flash )
49+ pico_package_uf2_output (low_power_test_timers_encrypted_xip_sram )
50+ pico_sign_binary (low_power_test_timers_encrypted_xip_sram ${PICO_SDK_PATH} /tools/example_keys/private.pem )
51+ # Encrypted binaries don't clear xip_sram, so NO_CLEAR can be omitted when persistent data is in xip_sram
52+ pico_encrypt_binary (low_power_test_timers_encrypted_xip_sram ${PICO_SDK_PATH} /tools/example_keys/privateaes.bin ${PICO_SDK_PATH} /tools/example_keys/ivsalt.bin EMBED )
53+ pico_set_persistent_data_loc (low_power_test_timers_encrypted_xip_sram xip_ram )
54+ # Also check encrypting with code in xip_sram
55+ pico_use_xip_sram_for_time_critical (low_power_test_timers_encrypted_xip_sram )
56+ set_target_properties (low_power_test_timers_encrypted_xip_sram PROPERTIES PICO_TEST_TIMEOUT 35)
57+ set_target_properties (low_power_test_timers_encrypted_xip_sram PROPERTIES PICO_TEST_FAILURE_STRING "ERROR:" )
58+ set_target_properties (low_power_test_timers_encrypted_xip_sram PROPERTIES PICO_TEST_BUDDY_FILE external_sleep_timer.elf)
59+ # create map/bin/hex file etc.
60+ pico_add_extra_outputs (low_power_test_timers_encrypted_xip_sram )
4361 endif ()
4462
4563
Original file line number Diff line number Diff line change @@ -97,4 +97,15 @@ if (NOT PICO_RP2040 AND NOT PICO_C_COMPILER_IS_CLANG)
9797 pico_set_time_critical_placement (pico_critical_xip_sram_test_low_power xip_ram )
9898 pico_set_persistent_data_loc (pico_critical_xip_sram_test_low_power xip_ram )
9999 pico_add_extra_outputs (pico_critical_xip_sram_test_low_power )
100+
101+ # Packaged binary and critical XIP SRAM
102+ add_executable (pico_critical_xip_sram_test_packaged pico_critical_xip_sram_test.c )
103+ target_link_libraries (pico_critical_xip_sram_test_packaged PRIVATE pico_stdlib pico_multicore hardware_dma pico_test )
104+ if (NOT PICO_RP2040)
105+ target_link_libraries (pico_critical_xip_sram_test_packaged PRIVATE hardware_riscv_platform_timer )
106+ endif ()
107+ pico_set_binary_type (pico_critical_xip_sram_test_packaged no_flash )
108+ pico_use_xip_sram_for_time_critical (pico_critical_xip_sram_test_packaged )
109+ pico_package_uf2_output (pico_critical_xip_sram_test_packaged )
110+ pico_add_extra_outputs (pico_critical_xip_sram_test_packaged )
100111endif ()
You can’t perform that action at this time.
0 commit comments