I'm having problems using the simulator in MPLAB X IDE. It's probably just me, but I can't figure out what I'm doing wrong.
I have a simple program:
#include <stdio.h> #include <stdlib.h> int main(int argc, char** argv) { uint16_t apple; apple = 0x1234; apple += 5; apple += 2; apple -= 1; return (EXIT_SUCCESS); }
It "Builds" correctly, but when I try to run it with the simulator and any breakpoints I get the following error:
Break point at line 8 in file P:/Users/p/Documents/MPLABXProjects/discard-test-12.X/newmain.c cannot be resolved to a valid program memory address
I don't see anything in the MPLAB X IDE about the need to set a starting point for program memory, but I'm guess that I need to do that. The problem is that I don't know how to do that or even if that's my problem.
Any suggestions would be appreciated.
Paul