I couldn't write into IMASK register though I can write into SIC_IMASK register as below
*pSIC_IMASK = 0x00010000;
*pIMASK = 0x081f; //Throws excause 2e [ Not allowed in user mode]
any input is appreciated.
while that is certainly true, the same should apply to pretty much all system/core MMRs, including SIC_IMASK. so it seems odd that code that can write SIC_IMASK is unable to write IMASK. or maybe i'm making assumptions about the state of the code in question -- perhaps the SIC_IMASK is written in a different section of code which runs in a different processor state.
might want to check IPEND to see if the code is executing in supervisor or user mode.
Manipulating the interrupt mask can only be done in supervisor mode (for example, while in an interrupt level).
Please refer to the "IMASK Register" section in the Blackfin Processor Programming Reference:
Thanks, I got it . It was in different code segment.
Retrieving data ...