18F4520 Overwriting Previous Address?


Results 1 to 6 of 6

Threaded View

  1. #5
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: 18F4520 Overwriting Previous Address?

    The case could be that any modification to the code before 3200h,
    or compiling with a different compiler has increased the code size so that it extends past 3200h.
    You could try moving the code somewhere later in the file with the org statement.
    I don’t think you can just move it anywhere. It must be the start of a code page (or something like that).
    PBP also uses org statements to organise where lookup tables are going to be,
    and doesn’t make you aware of where it’s going to put them.

    As it is right now, you could try just commenting some code before 3200h,
    even if it breaks the program for now, and if it compiles you should see how close your code has come
    (in the compiled hex file) to the address 3200h.
    It does sound to me like trying to write two sets of program data in the same location.
    Last edited by Art; - 29th June 2015 at 06:28.

Similar Threads

  1. Overwriting previous address contents... oh no - not again!
    By PerlNoerd in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 11th February 2014, 16:24
  2. PBP v3.0 vs previous versions
    By MikeBZH in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th October 2011, 21:30
  3. Replies: 8
    Last Post: - 3rd March 2011, 22:20
  4. Comparators on 18F4520
    By RacerX10 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th August 2009, 23:33
  5. 18F4520 44 pin
    By ferrousduke in forum General
    Replies: 6
    Last Post: - 14th March 2008, 13:51

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts