This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Jetson TX2 cortex-a57 crash after enabling mmu

My code is running at EL2 in one of the cortex-a57 cores in an nvidia tx2.  The code is crashing just during initialization after I enable MMU.

However, what I just found out is that this is only happening if I run a "tlbi alle2". If I execute it before enabling the MMU, the cpu crashes when I enable the MMU by writing to SCTLR_EL2. If I execute it after enabling the MMU, it crashes when I execute the tlbi instruction but only when followed by a dsb. If I don't invalidate the tlb at any point, the code seems to be running fine.

Any idea on what the problem might be?

thanks

PS: when I say "crash", I guess an exception happens, but the processor actually seems to be stalling. I cant be sure what happens and why I lose control of the processor. I don't have a debugger, so I can only figure out where the code stops, by printing using the uart at specific points.

edit: initially, I thought I was running from one of the Denver cores, but by reading MIDR_EL1 I see this happens in a cortex-a57

Parents Reply Children
No data