-
How do you print variables using
With the error:
As an aside, the purpose for printing variables is to debug code to access the UDP capsule. If there is a better way to display debug data I would appreciate knowing that. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
I transferred this discussion to the libtock-rs repo since it is a question about libtock-rs specifically. Can you post the full panic print? The example code you shared is intended to work. |
Beta Was this translation helpful? Give feedback.
-
I restored the kernel to the original on master and simplified console to be
After connecting to the board I pressed the reset button on the board since the app had already crashed. It then started and crashed again. The output is below. BTW I have also tried different argument types, and only
I tried the suggestion |
Beta Was this translation helpful? Give feedback.
-
I just noticed in the above log |
Beta Was this translation helpful? Give feedback.
I just noticed in the above log
│ ▼ Stack 296 | 256 EXCEEDED!
So I adjusted the console app stack size to
stack_size! {0x200}
And I got the expected output of
This arg is u8: 65