Skip to content

Copy hello_serial into bootloaders/encrypted #537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bootloaders/encrypted/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions bootloaders/encrypted/hello_serial.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/

#include <stdio.h>
#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);
}
}
Loading