Hi All.
I am developing a product uisng Nuvoton NUC029LAN Microcontroller.
in the code when i write
P2 = 0x00;
where i need to pull Low the port pins of P2
i am getting an error
main.c(102): error: #137: expression must be a modifiable lvalue
Can anybody please let me know what the error is for.
"lvalue" is a standard 'C' programming term - not specific to ARM or Cortex.
https://en.cppreference.com/w/cpp/language/value_category
https://eli.thegreenplace.net/2011/12/15/understanding-lvalues-and-rvalues-in-c-and-c
So the compiler doesn't think that your "P2" is something that can be assigned to.
So you need to look at your definition of P2 - maybe it is const ... ?