Hello
It is hard to say without the whole application.
Did you check in the .map file in which section the variable NVOPT has been allocated?
This might give an indication on the reason for the problem.
Also Do you have external declaration for this variable?
Did you place the variable in the same section in the declaration?
Also can you try the following:
- define NV_REG_SEG as follows
NV_REG_SEG = READ_ONLY 0xFFBF SIZE 1;
Should not make a difference, but might be worth a try.
CrasyCat