Skip to content

Commit baec217

Browse files
committed
Use secure_launch_nonsecure_binary_default
1 parent 9270211 commit baec217

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

trustzone/hello_trustzone/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ pico_set_security_options(hello_trustzone_s hello_trustzone_ns
2929
# Set security ram split
3030
pico_set_security_ram_split(hello_trustzone_s hello_trustzone_ns SIMPLE 64k 2k)
3131

32-
# Create combined UF2
32+
# Create combined UF2 (ns first)
3333
pico_concatenate_uf2_outputs(hello_trustzone hello_trustzone_ns hello_trustzone_s)

trustzone/hello_trustzone/secure.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ int main()
7676
secure_install_default_hardfault_handler(hardfault_callback);
7777

7878
// Launch Non-Secure binary
79-
secure_launch_nonsecure_binary(XIP_BASE, SRAM8_BASE);
79+
secure_launch_nonsecure_binary_default();
8080

8181
// Should never return from non-secure code
8282
printf("Shouldn't return from non-secure code\n");

0 commit comments

Comments
 (0)