From 163291405c73e21f1ee39b0b8b7e9fde7a192e10 Mon Sep 17 00:00:00 2001 From: Lup Yuen Lee Date: Tue, 16 Jul 2024 17:18:13 +0800 Subject: [PATCH] Add NOP Loop to Hello Example --- examples/hello/hello_main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/hello/hello_main.c b/examples/hello/hello_main.c index 2cd6cb400a7..6bb309f2418 100644 --- a/examples/hello/hello_main.c +++ b/examples/hello/hello_main.c @@ -36,5 +36,12 @@ int main(int argc, FAR char *argv[]) { printf("Hello, World!!\n"); + + //// Begin Debug + puts("0"); + for (uint32_t i = 0; i < 40000000; i++) { asm("nop"); } + puts("1"); + //// End Debug + return 0; }