Have you checked that the coompiler/linker isn't skipping memory by using the org 0xXXX statement ? It may be you actually have run out of room... Otherwise you may have used some assembler that disturbs the compilers page-switching code. (The 16F873 does have paged program-memory doesn't it ?) KreAture ----- Original Message ----- From: "cdb" To: Sent: Monday, May 12, 2003 11:11 AM Subject: [PIC]: Program memory question > I am using an 16F873, and so far have used 3616 program words. > > My problem is that as soon as I go over this, even 3617 words the Pic > crashes. > > I don't have an ICD to check, where this happens, just a simulator > where all is hunky dory. > > The program is not (theoretically) getting lost, the linker for the > compiler has all the right calls, appearing in the LST file. The list > file shows the program ending at 0x0E40, so I would have thought I > still have another sub page to go to get to 0xFFF > > Have I misunderstood the amount of memory verses program words for > the Pic. Normally most of my programs only take a max of 3200 odd > words. > > The program is written in C, but only the fuction calls, most of the > functions themselves have been written in assembler. > > Does anyone have any ideas. I have tried another brand new 873, just > to make sure that my normal test one wasn't playing up. > > Just checking before I send one of my expletive ridden missives to > the compiler's author. > > Colin > -- > cdb, cdb@barnard.name on 31/03/2002 > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads