I'm running Windows XP SP3 and PBP 2.6 with MCS 3.0.0.5
The code is this:
DEFINE OSC 20
FLASH_RATE VAR BYTE
LED_0 VAR PORTB.0
FLASH_ON = 1500
FLASH_OFF = 500
lblLoop:
High LED_0
Pause FLASH_ON
Low LED_0
Pause FLASH_OFF
GoTo lblLoop
End
Again, this worked on my old PC with a previous version of PBP.
Also, if I try to compile one of the sample files from c:\pbp\samples (e.g. adcin3x) I get tons of these errors:
Error c:\pbp\pbppic14.lib 272 : [225] Undefined Symbol 'PORTE'
That is starting to sound like the wrong PIC is selected???
Dave
Always wear safety glasses while programming.
I thought so too, but I'm doing a compile only - not programming the chip. I tried selecting the PIC that I wrote that code for (12f629) but it still showed the same error.
Now I am confused. What PIC and what code?
The 12F629 does not have a PORTB or E if you are referring to the code in post #4.I tried selecting the PIC that I wrote that code for (12f629) but it still showed the same error.
Use GPI0.x
Dave
Always wear safety glasses while programming.
Sorry, it was other code for the 12f629 I was thinking of - this code was written for my test PIC, 16f84a.
I installed PBP 2.60 & MCS 3.0.0.5 on my laptop and this code works (selecting 16f84a):
DEFINE OSC 20
FLASH_ON VAR BYTE
FLASH_OFF VAR BYTE
LED_0 VAR PORTB.0
FLASH_ON = 1500
FLASH_OFF = 500
lblLoop:
High LED_0
Pause FLASH_ON
Low LED_0
Pause FLASH_OFF
GoTo lblLoop
End
I tried bumping up the memory allocation for the Windows XP virtual machine that is reporting the out of memory error, but no luck.
What is the parent OS?
This may help
http://www.picbasic.co.uk/forum/showthread.php?t=12532
Dave
Always wear safety glasses while programming.
It's an iMac with Mac Snow Leopard OS (10.6.2). I'm using Parallels Desktop to create the Windows XP virtual machine.
Bookmarks