cannot be resolved to a valid program memory address

Status
Not open for further replies.

TucsonDon

Member
I am using MPLab 5.50 & xc8 2.32. The issue is that some code that was generated by MCC is not compiling correctly while I am trying to debug i.e.



As you can see the break points are broken and PC sees the "{" as code. I have tried everything I can think of to correct this issue to no avail. And when I compile I get "Break point at line 817 in file D:/MPLab Projects/Current Projects/HouseUART.X/mcc_generated_files/i2c1_master.c cannot be resolved to a valid program memory address.



I have:

clean install with MPLab & xc8

completely removed the resource from MCC and added back.

rebuilt the whole project

deleted build, debug and dist folders then recompiled



I hope someone has some insight into this and can help to resolve it
 
It's because the code doesn't use any memory. Try adding a NOP(); before each break instruction and place the breakpoint on that line.

Mike.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…