When I define the array as above, the SETTING_WAIT_LOCK_TIME_MIN index is assigned as 0x0C. And some of the rest of the indexes are also not correct. If I define the SETTING_WAIT_LOCK_TIME definition as 1, now it and the rest are assigned correctly.
What is the problem here?
Thanks.
The minConfiguration array's memory addresses are 0x103-0x113. The incorrect assign is at 0x10B. I put an "on change" condition on Proteus to the address 0x10B. As the simulation starts the 0x10B address is assigned as 0x0C. Up to this address, the previous indexes are correctly assigned.
Now, I had to clear that definition of array, and I defined the array[MAX_INIT_NO], then in the software I assigned one by one.
If you are interested in a serious answer, post a minimal CCS design that allows to reproduce the problem, along with compiler version information. Otherwise keep on guessing.
I would generally suggest to check the code in MPLAB SIM rather than Proteus.