-
Notifications
You must be signed in to change notification settings - Fork 203
Update outdated qemu documentation #403
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sounds good to me, thank you!
The dependency is unfortunate but I see the convenience in using the template for a hello world.
Any objections?
|
|
||
| Next, let's see how to run an embedded program on QEMU! This time we'll use the | ||
| `hello` example which actually does something. | ||
| `hello` example which actually does something. By default, this example uses [defmt] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `hello` example which actually does something. By default, this example uses [defmt] | |
| `hello` example which actually does something. By default, this example uses `[defmt]` |
|
|
||
| ```rust,ignore | ||
| //! Prints "Hello, world!" on the host console using semihosting | ||
| In order to read and decode the messages produced by defmt in the host, we need to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| In order to read and decode the messages produced by defmt in the host, we need to | |
| In order to read and decode the messages produced by `defmt` in the host, we need to |
| -kernel target/thumbv7m-none-eabi/debug/hello | ||
| ``` | ||
|
|
||
| In our case, since we use defmt, the host will not be able to decode the output. Instead, we |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| In our case, since we use defmt, the host will not be able to decode the output. Instead, we | |
| In our case, since we use `defmt`, the host will not be able to decode the output. Instead, we |
I've seen #400 PR but I went ahead and modified the docs to use the new suggested template (https://github.com/knurling-rs/app-template).
The tricky part is that the new template uses
defmt, so theqemu-system-armbinary is not enough but Ferrous System'sqemu-runtool is required to decode the output properly.I'm not a big fan of third-party dependencies in the official docs, but feedback is welcome.