<div dir="ltr"><div>Openocd connection is on my website. Here's the link to that. <a href="https://0xnoor.hashnode.dev/setup-openocd-with-jtag-uart-on-raspberry-pi-4-using-ft232h">https://0xnoor.hashnode.dev/setup-openocd-with-jtag-uart-on-raspberry-pi-4-using-ft232h</a></div><div><br></div><div>I pushed the code to my github repo. Be sure to checkout noor-dev branch. Here's the link for that. <a href="https://github.com/0xnoor/rtems">https://github.com/0xnoor/rtems</a></div><div><br></div><div>And yes the code looks bad as of now, I'll do optimization and everything soon. <br></div><div><br></div><div>Thanks</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 2 Sept 2022 at 23:31, Alan Cudmore <<a href="mailto:alan.cudmore@gmail.com">alan.cudmore@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi Noor,</div><div dir="auto">Can you describe the setup you use for testing the BSP?</div><div dir="auto">I can set up my Pi 4 to try running your code as you update it. How do you setup the OCD connection?</div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Alan</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 2, 2022 at 11:48 AM Noor Aman <<a href="mailto:nooraman5718@gmail.com" target="_blank">nooraman5718@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hey all,</div><div>Raspberry Pi 4B MMU seems to be enabled, as reported by openocd but gdb is showing to run in a loop from aarch64-defaulit-exception.S file starting from code line number 143 to 220.</div><div><br></div><div>From what I can gather, it is being caused by the wrong MMU address.</div><div> Here's a RAM and MMU allocation sizes and base</div><div><span style="font-family:comic sans ms,sans-serif"><br></span></div><div><span style="font-family:comic sans ms,sans-serif"> MEMORY {<br> RAM_MMU : ORIGIN = 0x0, LENGTH = (0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES})<br> RAM : ORIGIN = 0x80000, LENGTH = 1024M<br> }</span></div><div><span style="font-family:comic sans ms,sans-serif"><br></span></div><div><span style="font-family:comic sans ms,sans-serif"><span style="font-family:arial,sans-serif">Relevant Openocd info </span><br></span></div><div><span style="font-family:comic sans ms,sans-serif"><br></span></div><div><span style="font-family:comic sans ms,sans-serif">bcm2711.cpu0 halted in AArch64 state due to debug-request, current mode: EL1T<br>cpsr: 0x200003c4 pc: 0x8e208<br>MMU: enabled, D-Cache: enabled, I-Cache: enabled<br>Info : New GDB Connection: 1, Target bcm2711.cpu0, state: halted<br></span></div><div><span style="font-family:comic sans ms,sans-serif"><br></span></div><div><span style="font-family:comic sans ms,sans-serif">Any ideas?</span></div><div><span style="font-family:comic sans ms,sans-serif"><br></span></div><div><span style="font-family:comic sans ms,sans-serif">Thanks,</span></div><div><span style="font-family:comic sans ms,sans-serif">Noor<br></span></div></div>
</blockquote></div></div>
</blockquote></div>