You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I debug this example using openocd and find that a memory fault occur after enable mmu, and I guess that whether the core0's operation is affected by another core after mmu is enabled?
I see the code that raise a error is below, after write sctlr_el1, the isb raise the error:
staticvoidenable_mmu_el1(structarm_mmu_ptables*ptables, unsigned intflags)
{
ARG_UNUSED(flags);
uint64_tval;
/* Set MAIR, TCR and TBBR registers */write_mair_el1(MEMORY_ATTRIBUTES);
write_tcr_el1(get_tcr(1));
write_ttbr0_el1((uint64_t)ptables->base_xlat_table);
/* Ensure these changes are seen before MMU is enabled */isb();
/* Invalidate all data caches before enable them */sys_cache_data_invd_all();
/* Enable the MMU and data cache */val=read_sctlr_el1();
write_sctlr_el1(val | SCTLR_M_BIT | SCTLR_C_BIT);
/* Ensure the MMU enable takes effect immediately */isb();
MMU_DEBUG("MMU enabled with dcache\n");
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am booting zephyr on OK1046A board that use nxp ls1046a SoC,but it occur a error regardless of the use of 1-core or 4-core smp example:
build command:
west build -b nxp_ls1046ardb samples/synchronization
or
west build -b nxp_ls1046ardb_smp_4cores samples/synchronization
download command:
tftp c0000000 zephyr.bin; dcache off; dcache flush; icache flush; icache off; go 0xc0000000;
The result show below:

I debug this example using openocd and find that a memory fault occur after enable mmu, and I guess that whether the core0's operation is affected by another core after mmu is enabled?
I see the code that raise a error is below, after write sctlr_el1, the isb raise the error:
Zephyr version: 3.2.99
Zephyr SDK: zephyr-sdk-0.15.2
I am looking forward to your reply, Thanks.
Beta Was this translation helpful? Give feedback.
All reactions