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
Might they have added wizard support for configuring the registers during startup, before main() takes over?
It's quite common to have some processor registers that should be protected from further use - and some processors even allow them to require privileged mode.