Tool/software:
Hi
I am reading and clearing the status registers of ESM. Eg ESM Status Register 1 (ESMSR1)
I would like to clear the channel bits after reading to check if the error happens again. Writing is in privilege mode only. How do I know if the mcu is in privilege mode? I read somewhere that there is a bit in the control register that indicates if the mcu is in privilege mode or user mode. Please let me know which bit , ie which register and which bit. If mcu is in user mode, how to set it back to privilege mode?
Looking forward to your reply. Thank you