To disable DLM, it depends on what program you used. 1. If you used assembly code : pleae look for "init_dlm:" section and you should see the following : init_dlm: la $r0, .rodata ori $r0, $r0, 1 ---> change it to "0" mtsr $r0, $DLMB isb
2. If you are using c program , you should have something like : __nds32__mtsr(0x100001, NDS32_SR_DLMB);
Change it to : __nds32__mtsr(0x100000, NDS32_SR_DLMB);
Basically, change the register DLMB bit 0 to value "0"
Then, you need to re-arrange your data section in your linker script to make sure they don't use DLM memory space. You might need to think about where you want to put your data session..
|