-
-
Notifications
You must be signed in to change notification settings - Fork 846
Add JTAG tutorial #17
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
Conversation
Add an instruction for openocd insallation Update tutorial to use openocd on Docker Fix RTCK pin Add wiring diagram for JTAG connection
Wow, it's really nice tutorial. Great job! 👏 Honestly, I had no Idea to provide simple way to load another image to debug after enable/connect JTAG debugger. Anyway, I'll follow the tutorial. Give me few days for that. At least, I'll provide improved wiring photo and fritzing image as requested at #18 . |
0B_hw_debug_JTAG/src/power.rs
Outdated
compiler_fence(Ordering::Release); | ||
|
||
if mbox.call(mbox::channel::PROP).is_err() { | ||
return Err(PowerError::MailboxError); // Abort if UART clocks couldn't be set |
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.
Invalid comment - we turn off POWER, not set UART clocks.
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.
Good catch, thanks. Corrected it.
Thank you @andre-richter and @naotaco for this; my journey with JTAG debugging my Pi was bumpy up to this point, hopefully, it will become a smoother ride now! I will play with the 0B tutorial and write up if anything is not working. I have a JLink not olimex, so things might be slightly different. Feel free to pull anything from these documents if you want/need: JTAG notes, config.txt that enables JTAG on boot without additional software, JTAG wait helper. |
@berkus Using For the tutorials, since we have our chain-loading infrastructure with |
I agree. Actually, gdb is working here perfectly! I can break the CPU and see registers/source code in cool gdb window. Thanks again for your great work ❤️ |
Perfect, thanks. |
@naotaco
Could you please review? This branch contains your changes and my extensions.
You can check out the
JTAG
branch of the repository for this.