I have made not progress. I can program using an ASM file from another source but still no luck with GCB.
Working ASM from another source. This proves the software and hardware is ok.
;flasher.asm;simpleprogramforPIC12F617;chippluggedintoLowPinCountDemoBoard;flashesLEDonGP2(pin5);potsliderconnectedtoAN0(pin7);switchonGP3(pin4)listp=12f617;listdirectivetodefineprocessor#include"p12f617.inc" ;processor specific variable definitionserrorlevel-302__config(_INTRC_OSC_NOCLKOUT&_WDT_OFF&_PWRTE_OFF&_MCLRE_ON&_IOSCFS_8MHZ);-----------------------------------------------------------------;defines;-----------------------------------------------------------------#define LED GPIO2 ;GP2 (pin 5);-----------------------------------------------------------------;variables;-----------------------------------------------------------------cblock0x20Counter1Counter2Shadowendc;------------------------------------------------------------------;initialisation;------------------------------------------------------------------org0clrfWmovwfANSELbankselTRISIOclrfWmovwfTRISIObankselGPIO;-----------------------------------------------------------------------;mainprogramloop;-----------------------------------------------------------------------loop:movlw0x04movwfGPIOcalldlymovlw0x00movwfGPIOcalldlygotoloopdly:movlw0x20movlwCounter1dly1:movlw0xFFmovlwCounter2dly2:decfszCounter2,Fgotodly2decfszCounter1,Fgotodly1returnend
I get an error when compiling: Error: GCASM: Symbol RP0 has not been defined
The code was two lines long:
;Chip Settings
#chip 12F617,8
if I change by add the RPO instruction. The error is resolved but the memory management may not be working.
;Chip Settings
#chip 12F617,8
set RP0 = 0
How can I correct the memory management?
I returned to this chip today.
I have made not progress. I can program using an ASM file from another source but still no luck with GCB.
Working ASM from another source. This proves the software and hardware is ok.
GCB Code - do not work