PICkit2 Lesson 5 error

easyhermit

New Member
Sorry to bother everyone again, but I'm studying the PICkit 2 Lesson 5. But when I built all, there are errors. The first error is highlighted (line 42). For some reason the assembler thinks bank 0 is selected, but the code is supposed to set RP0 to 1, selecting bank 1 right? This was from Microchip and I didn't change anything.

Here's a picture of it.


What is going on here? And yes, I'm using Windows XP (in a VM lol).
 
The bank warnings (lines 42, 43 and 48) are only warnings. It will still compile OK.

There may be a character limit the path length so you may need to have a shorter directory tree.
 
In the piece of code in your pic (post #1), you can remove those annoying 'Bank' messages by inserting the following just above the #include <p16F690.inc> line.

Insert it after column 1, ie tab in from the edge

errorlevel -302 ; Skip out of bank nuisance messages

You can do this in all the lessons or in any code of your own.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…