Konric
Newbie level 3
I am trying to simulate some code in MPLAB X but am having a problem with the while loop, so I started a new project with only two instructions to execute to make sure that something else in my code wasn't causing a problem.
Here is the code:
int main(void) {
TRISA = 0xFFFF;
while (1);
return 0;
}
I set a break point at TRISA = 0xFFFF;.
For some reason when I run it the program will enter the infinite while loop and after 128 seconds it will stop at the break point that I set and say:
"Break point at line 12 in file cannot be resolved to a valid program memory address"
The only time that the infinite while loop will work as expected is if you put it as the very first instruction to execute which is utterly useless.
Is this a problem with the compiler/simulator or is there some kind of setting that I should be aware of.
I have never come across this kind of problem with the old MPLAB nor with uKeil.
Does anyone know what is going on?
Here is the code:
int main(void) {
TRISA = 0xFFFF;
while (1);
return 0;
}
I set a break point at TRISA = 0xFFFF;.
For some reason when I run it the program will enter the infinite while loop and after 128 seconds it will stop at the break point that I set and say:
"Break point at line 12 in file cannot be resolved to a valid program memory address"
The only time that the infinite while loop will work as expected is if you put it as the very first instruction to execute which is utterly useless.
Is this a problem with the compiler/simulator or is there some kind of setting that I should be aware of.
I have never come across this kind of problem with the old MPLAB nor with uKeil.
Does anyone know what is going on?