• AVR Freaks

Hot!Errors in simulator

Author
bnolan
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2009/02/16 06:51:53
  • Location: 0
  • Status: offline
2009/02/22 06:14:58 (permalink)
0

Errors in simulator

Hello,
 
I have downloaded MPLAB IDE 8.2 and the C compiler.  I am going through the getting started literature and trying to running the second program:
 
#include <p18cxxx.h>
#pragma config WDT = OFF
void main (void)
{
 TRISB = 0;
 PORTB = 0;
 PORTB =0X5A;
 
 while (1)
 ;

 
It compiles fine with Build Succeeded.  The following error occurs when I try to run the program.
Any ideas
 
CORE-W0016: Halted due to PC incrementing over the Maximum PC address and wrapping back to Zero
#1

7 Replies Related Threads

    leon_heller
    Super Member
    • Total Posts : 6411
    • Reward points : 0
    • Joined: 2004/08/17 13:19:45
    • Location: St. Leonards-on-Sea, E. Sussex, UK.
    • Status: offline
    RE: Errors in simulator 2009/02/22 10:03:57 (permalink)
    0
    You probably did something wrong when you created the project. What device are you using?

    Leon

    Leon Heller
    G1HSM

    #2
    bnolan
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2009/02/16 06:51:53
    • Location: 0
    • Status: offline
    RE: Errors in simulator 2009/02/22 10:56:16 (permalink)
    0
    I am using an 18f452 as they suggest in the C compiler getting started literature.
     
    it may be something I did to create the project because i tried the "hello world" project and it does the same thing.
     
    I am using the project wizard and including the main.c file and the 18f452 linker file.
     
    I am using a 370 Dell workstation with XP.
     
    Any help would be appriciated.
    #3
    leon_heller
    Super Member
    • Total Posts : 6411
    • Reward points : 0
    • Joined: 2004/08/17 13:19:45
    • Location: St. Leonards-on-Sea, E. Sussex, UK.
    • Status: offline
    RE: Errors in simulator 2009/02/22 12:37:18 (permalink)
    0
    I just tried that program and it simulated OK, as I expected. You must be doing something wrong. I didn't need the linker file.

    I could send you my project folder.

    Leon
    post edited by leon_heller - 2009/02/22 12:45:15

    Leon Heller
    G1HSM

    #4
    bnolan
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2009/02/16 06:51:53
    • Location: 0
    • Status: offline
    RE: Errors in simulator 2009/02/22 19:02:34 (permalink)
    0
    I removed all microchip programs from my computer, rebooted it and downloaded MPLAB IDE and the C compiler and tried "hello world" again and again I get:
     
    CORE-W0016: Halted due to PC incrementing over the Maximum PC address and wrapping back to Zero
     
    when I hit Run.
     
    There must be a setting somewhere that I am missing.
     
    I found one thread with the same problem but it is in Spanish so it was no help to me.
    #5
    bnolan
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2009/02/16 06:51:53
    • Location: 0
    • Status: offline
    RE: Errors in simulator 2009/02/23 07:06:56 (permalink)
    0
    I figured it out!
     
    I had the build library target (involk MPLIB) tab checked under build options.  This is the only way I could get to programs to build.
     
    I changed to Build normal target and set the proper paths under the directories tab for lib,lkr and h
    Why would this not be the default setting???
    #6
    GregFord
    New Member
    • Total Posts : 1
    • Reward points : 0
    • Joined: 2019/11/18 04:47:03
    • Location: 0
    • Status: offline
    Re: RE: Errors in simulator 2019/11/18 10:10:57 (permalink)
    0
     
    I had exactly the same error message today and solved it by turning Optimisation down to the minimum.
     
    #7
    ric
    Super Member
    • Total Posts : 24638
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: RE: Errors in simulator 2019/11/19 14:00:03 (permalink)
    +1 (1)
    GregFord
    I had exactly the same error message today and solved it by turning Optimisation down to the minimum.

    You resurrected a ten year old topic talking about MPLAB 8 and C18.
    Are you really using these ancient tools, or MPLABX and XC8?




    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #8
    Jump to:
    © 2019 APG vNext Commercial Version 4.5