lupyuen commented on PR #2487:
URL: https://github.com/apache/nuttx-apps/pull/2487#issuecomment-2601215701

   @no1wudi Ah OK the hello_rust_cargo stack was full on nsh64:
   
https://gist.github.com/lupyuen/fba254be9ef64d3856c52e1a14a1b9ec#file-gistfile1-txt-L533
   ```text
   dump_tasks:    PID GROUP PRI POLICY   TYPE    NPX STATE   EVENT      SIGMASK 
         STACKBASE  STACKSIZE      USED   FILLED    COMMAND
   dump_task:       3     3 100 RR       Task    -   Running            
0000000000000000 0x80071420      1856      1856   100.0%!   hello_rust_cargo
   ```
   I followed your config and increased the hello_rust_cargo Stack Size from 
2KB to 8KB, and it works! I'll add this to my article thanks :-)
   
   https://gist.github.com/lupyuen/e28f6ea08e32dd9049999f9d6990e465
   ```
   kconfig-tweak --set-val CONFIG_EXAMPLES_HELLO_RUST_CARGO_STACKSIZE 8192
   
   NuttShell (NSH) NuttX-12.8.0
   nsh> uname -a
   NuttX 12.8.0 4857ea211f Jan 20 2025 10:41:10 risc-v rv-virt
   nsh> hello
   Hello, World!!
   nsh> hello_rust_cargo
   {"name":"John","age":30}
   {"name":"Jane","age":25}
   Deserialized: Alice is 28 years old
   Pretty JSON:
   {
     "name": "Alice",
     "age": 28
   }
   Hello world from tokio!
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to