I was wondering if I have the linker information at the top of my app.
 modules correct:
 
 [i] The main app has the following: 
 
 INT_VECTOR	CODE	0x004		; interrupt vector location
 		
 	movwf   rg_W_Temp           
 	SWAPF STATUS, W ;Swap status to be saved into W
 	CLRF STATUS 
 	MOVWF rg_Status_Temp 
 	mov	rg_FSR_Temp, FSR							
 	movf	PCLATH,W          
 	movwf	rg_Pclath_Temp
         ....
         ....
         goto INTERRUPT
 
 PROG0	CODE
 Page0_Pgm
 
 INTERRUPT
 	
 :isr1		
 	;>>Serial Received Part >>
         sb   b_HelloWorld
 
 [2] The other 2 app modules that are in codepage 0:
 
 PROG0	CODE	
 
 ;Returns either an 8 bit o 16 bit random value.
 ;16 bit value via the registers 'r_sv_Random_
 ;8 bit value via the registers 'r_sv_Random_
 ;Random 8 bit value between 1 and r_Random_MaxValue_
 
 gm_Get_Random_
 
 ....
    ....
 
 [3] The single app module I have in codepage1:
 
 PROG1	CODE	0x800
 Page1_Pgm
 
 [4] Now in my linker file '16F88.lkr' I changed the following lines:
 
 //CODEPAGE   NAME=vectors    START=0x0      END=0x4      PROTECTED
 //CODEPAGE   NAME=page0      START=0x5      END=0x7FF
 
 TO:
 CODEPAGE   NAME=vectors    START=0x0      END=0x14      PROTECTED
 CODEPAGE   NAME=page0      START=0x15      END=0x7FF
 
 Have I done anything wrong in the above?
  
 --- In piclist@yahoogroups
 >
 > Just because you don't call it doesn't mean it isn't assembled, and
 this 
 > new code didn't just cross a page boundary (one of the reasons I've 
 > moved to AVR's, that antiquated page boundary crap.)  Check to make
 sure 
 > that something didn't move some other call to another page.
 > 
 > DLC
 > 
 > Roger_4U wrote:
 > > I am using the PIC16 instruction set to write the code, and I am even
 > > commenting out the call to the function.  The code was working fine
 > > for days until I added the now Not called function.
 > > 
 > > --- In piclist@yahoogroups
 > > 
 > >>sounds like you may have something declared as byte and using it as
 > > 
 > > word so 
 > > 
 > >>it writes over the next memory location.
 > >>Just a first guess
 > >>
 > >>----- Original Message ----- 
 > >>From: "Roger_4U" <samelec@>
 > >>To: <piclist@yahoogroups
 > >>Sent: Saturday, December 08, 2007 7:03 PM
 > >>Subject: [piclist] Need Help Urgently - Mysterious Problem after
 adding 
 > >>Function
 > >>
 > >>
 > >>
 > >>>Hi Folks:
 > >>>
 > >>>I am up a creek, I have been working on some code for over a year and
 > >>>I am totally stumped with this last problem:
 > >>>
 > >>>Device:  Pic16F88
 > >>>Chip OSC: 20Mhz
 > >>>Programmer:  MeLabs USB Programmer
 > >>>Code is spread across two codepages. i.e Linker is being used.
 > >>>Number of  Software Modules: 4 [3 in CodePage0 and 1 in CodePage1]
 > >>>Assembler/
 > >>>Serial speed: 57.6Kbps
 > >>>
 > >>>My problem is that the circuit stops working properly once I add
 a new
 > >>>sub-program (function) to CodePage0; and what is totally baffling is
 > >>>that even if I comment out the call in the main program to this
 > >>>function, the problem still persists.   When I reduce the size of the
 > >>>function by say 7 statements, the serial portion, a LED switch, and
 > >>>the blinking LED, work as expected.  However when I have all the code
 > >>>present, everything seems to be still working except the serial part
 > >>>of the circuit which starts sending out mixed up data.
 > >>>
 > >>>I have changed the chip, upgraded to the latest IDE, and still the
 > >>>same problem.
 > >>>
 > >>>What is going on here? PLEASE HELP - I feel like jumping ship and
 > >>>starting over from scratch with a different platform (e.g AVR).
 > >>>
 > >>>
 > >>>
 > >>>
 > >>>to unsubscribe, go to http://www.yahoogro
 > >>>instructions
 > >>>Yahoo! Groups Links
 > >>>
 > >>>
 > >>>
 > >>>
 > >>
 > > 
 > > 
 > > 
 > > 
 > > to unsubscribe, go to http://www.yahoogro
 instructions 
 > > Yahoo! Groups Links
 > > 
 > > 
 > > 
 > 
 > -- 
 > ------------
 > Dennis Clark          TTT Enterprises
 > www.techtoystoday.
 > ------------
 >
 
 
Earn your degree in as few as 2 years - Advance your career with an AS, BS, MS degree - College-Finder.net.
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
No comments:
Post a Comment