This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

XE167 a C167 variant- Flash access violation

Hello,

I am attempting to Write to flash memor using the Keil->C166-> flash->XC2xxx project example. I am using an XE167F hardware. When I attempt to access address 0xC10000, I get an "error 65: access violation: addr = 0x00C100AA"

I have read through the User's Guide from http://www.keil.com/dd/docs/datashts/infineon/xe166m_um_v2_0.pdf and I have understood that I need to allow access through the MPU to write/read command by using IMB_IMBCTRH register bit WPA.
I do not know how exactly to gain access to this register to change it's value.
Also, do I have any of this information incorrect please direct me to where to keep reading on this issue.

Thanks,

Steven