diff --git a/bootloaders/encrypted/CMakeLists.txt b/bootloaders/encrypted/CMakeLists.txt index ee39d2768..609dc0b38 100644 --- a/bootloaders/encrypted/CMakeLists.txt +++ b/bootloaders/encrypted/CMakeLists.txt @@ -64,7 +64,7 @@ example_auto_set_url(enc_bootloader) # Example binary to load add_executable(hello_serial_enc - ../../hello_world/serial/hello_serial.c + hello_serial.c ) # pull in common dependencies diff --git a/bootloaders/encrypted/hello_serial.c b/bootloaders/encrypted/hello_serial.c new file mode 100644 index 000000000..9b7cceb23 --- /dev/null +++ b/bootloaders/encrypted/hello_serial.c @@ -0,0 +1,17 @@ +/** + * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include +#include "pico/stdlib.h" + +int main() { + stdio_init_all(); + while (true) { + printf("Hello, world!\n"); + printf("I'm an encrypted binary\n"); + sleep_ms(1000); + } +}