Menu

#87 Do "PAGESEL _main" prior to "GOTO _main"

closed-accepted
nobody
None
5
2007-04-23
2007-04-21
No

I'm working on a pic16f887 program that (now) occupies more than one code page. Development was going fine until the code size went slightly over one page. As soon as that happened, the application code stopped working. Debugging revealed that execution never got to the application's main(). (I added code to pulse certain output pins and observed that the pulses were never occurring.)

It turned out that it's necessary to execute a "PAGESEL _main" prior to doing the "goto _main" at the end of _sdcc_gsinit_startup().

I've included a suitable ChangeLog entry at the beginning of the small (one line) patch.

Discussion

  • Kevin Buettner

    Kevin Buettner - 2007-04-21

    Do PAGESEL _main prior to GOTO _main

     
  • Raphael Neider

    Raphael Neider - 2007-04-23
    • status: open --> closed-accepted
     
  • Raphael Neider

    Raphael Neider - 2007-04-23

    Logged In: YES
    user_id=1115835
    Originator: NO

    Ooops, accepted in SDCC r4767. Thank you.
    (I shall fix the ChangeLog entry to have your name there in my next commit; just didn't look at the patch in time...)

     

Log in to post a comment.