Hi All
I am doing selftest such as ecc PBIST. I see most registers can only be accessed in priviledge mode. I know that modes other than user mode have privileged access rights. I also find that the halcogen puts most selftest functions in the int00 before main.
My question is :
Once power on(entering the int00), what mode is CPU at?
When the mode has been switched (into user mode)? i didt see any explicit fucntion call? or the mode will be switched into user mode automatically after main()?
I put some self test functions in the main() such as fmcECCcheck and checkFlashECC which has to write the priviledged registers. But no error occur, and the registers look like can be written in main().
Can someone clarify this to me?
Thanks Leo