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

GPIO commit reg is read only

Hi,
I am programming a TM4C123GH6PM device from TI and I get an error when trying to modify the GPIO commit register.
It is defined in the GPIOA_Type struct (in C:\Keil_v5\ARM\PACK\Keil\TM4C_DFP\1.0.0\Device\Include\TM4C123\TM4C123GH6PM.h file) as a constant

__I  uint32_t  CR;    /*!< GPIO Commit*/

this makes the compiler to fail with message: "read-only variable is not assignable"
when trying to modify it.
Is this a bug in the header file? How am I supposed to modify this register?

Javi

0