"The use of byte accesses is due to a compiler optimization that tries to generate the smallest possible memory access."
The code generated for bit field does generate byte accesses to the peripheral registers, which doesn't work.
I've searched various forums and groups and haven't seen anyone describing a work around, and I'm not a fan of Processor Expert's method of using one of several different macros for each bit operation.
Does anyone know if there's a compile option/switch, or maybe section definition option, that tells the compiler to not "help" in this manner?
Ralph
For Technical Support Issues please use Freescale on line support web page.
- Go to following URL: http://www.freescale.com/TechSupport
- Click on Submit a Service Request. You will come to a login page.
- You can submit your request through the web from there.