DEBUG on 18F4620


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    It just might be a good idea for somebody to talk to microchip about this one.

    The DEBUG in the .inc file, does not point to the DEBUG config bit as one might expect. That bit is defined as ...
    <pre>_DEBUG_ON_4L EQU H'7F' ; Enabled<br>_DEBUG_OFF_4L EQU H'FF' ; Disabled</pre>
    Instead, it points to register FD4h.
    <pre>DEBUG EQU H'0FD4'</pre>In the datasheets, FD4h is shown as ... 2: Unimplemented registers are read as ‘0’.

    If it's an unimplemented register, why define it in the .inc file.

    My guess is that it is used by the "ICD2 executive" program when in debug mode. And, I'm also guessing that the DEBUG equate, is in there by mistake, because the ...

    P18F2525.INC
    P18F25K20.INC
    P18F2620.INC
    P18F4525.INC
    P18F45K20.INC
    P18F4620.INC

    files, all have the same problem. These chips all have the same basic Core, so the .inc files were probably just copies of each other, with small changes for each chip. Propagating the error along with it.

    Perhaps if they knew about it. You might not have to make the changes after the next Upgrade.
    <br>
    DT

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    BUT as it cause a problem to a third party software and not in their own... i guess they'll never do any change.

    I don't have access to my ICD-2 here, but it would be interesting if someone can perform an ICD test and use DEBUG just to see how it goes on this PIC by commenting the DEBUG equate, and on ather PIC #... in the 18F serie wich the DEBUG_ON DEBUG_OFF fuses.
    Last edited by mister_e; - 26th May 2006 at 03:11.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Also interesting, would be to disassemble the ICD2 Executive and see how many of those other Un-Implemented registers actually do something too.

    DT

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Just installed MPLAB 7.40 today... problem is still there. Have'nt access to my ICD-2 again.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. N-Bit_MATH
    By Darrel Taylor in forum Code Examples
    Replies: 38
    Last Post: - 16th December 2010, 14:48
  2. About USB
    By dias11 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 3rd December 2009, 20:41
  3. debug not working with MPASM assempler
    By santamaria in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th March 2009, 07:51
  4. Data EEPROM gets clobbered during programming
    By BrianT in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 18th July 2008, 02:46
  5. DEBUG problem with 18F4620
    By BrianT in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th November 2007, 05:36

Members who have read this thread : 0

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

Posting Permissions

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