Hot!MPLAB XPRESS 20 Pin Evaluation Board for PIC16F1845 - Breakpoints not hit

Author
RonGer
Starting Member
  • Total Posts : 32
  • Reward points : 0
  • Joined: 2018/11/27 08:43:34
  • Location: 0
  • Status: offline
2018/12/22 13:04:20 (permalink)
0

MPLAB XPRESS 20 Pin Evaluation Board for PIC16F1845 - Breakpoints not hit

Dear all,
 
I try debug my Software on a MPLAB XPRESS 20 Pin Evaluation Board (Target MCU is the PIC16F1845) with a Pickit3
Unfortunately setted breakpoints aren't hit. I red several threads in the Forums on this page.
I also reviewed the following documents:
 
PIC16(L)F18326/18346 Datastheet page 395 - 33.0 In-Circuit Serial Programming™ (ICSP™
MPLAB® Xpress Evaluation Board User’s Guide page 29 - Circuit Diagram
 
I assume the Problem is reasoned by the fact that the USB D- is connected to ICSPDAT and USB D+ is connected to ICSPCLK.
Most probably both interfaces interferring each other.
 
The USB Connection is necassary for the power supply of the board (Power Supply over Pickit is not working as well).
The next step would be to do the power supply with a external power supply to the 5VUSB pin.
 
Before doing this I wanted to ask in the community if anybody found another way to make a Debugging with working breakpoints feasible?
 
Kind Regards
 
Ron
#1

8 Replies Related Threads

    qhb
    Superb Member
    • Total Posts : 8317
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: online
    Re: MPLAB XPRESS 20 Pin Evaluation Board for PIC16F1845 - Breakpoints not hit 2018/12/22 15:22:08 (permalink)
    0
    Your title says "PIC16F1845", but there is no such device.
    You then refer to the PIC16(L)F18326/18346 datasheet. Those devices don't have USB.
    What device do you actually have?
     
    #2
    qhb
    Superb Member
    • Total Posts : 8317
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: online
    Re: MPLAB XPRESS 20 Pin Evaluation Board for PIC16F1845 - Breakpoints not hit 2018/12/22 15:42:14 (permalink)
    0
    ok, by trial and error, I think I have determined that your device is actually a PIC16F18345
    so the evaluation board must be a DM164141 https://www.microchip.com...roductDetails/DM164141
    How are you using a PICKIT3 with this? It has an on-board debugger connected to the USB interface.

    I assume the Problem is reasoned by the fact that the USB D- is connected to ICSPDAT and USB D+ is connected to ICSPCLK.
    Most probably both interfaces interferring each other.

    You are looking at the wrong PIC on that board. There are TWO.
    U2, the PIC16F1454 is just the USB interface and programmer. You cannot debug that chip.
    U3, in the bottom right corner, is the "target device", which will be the PIC16F18345.
     
     
    post edited by qhb - 2018/12/22 15:49:04
    #3
    RonGer
    Starting Member
    • Total Posts : 32
    • Reward points : 0
    • Joined: 2018/11/27 08:43:34
    • Location: 0
    • Status: offline
    Re: MPLAB XPRESS 20 Pin Evaluation Board for PIC16F1845 - Breakpoints not hit 2019/01/02 00:46:54 (permalink)
    0
    Hi qhb,
     
    I try to debug the MPLAB® Xpress PIC16F18345 Evaluation Board with the Pickit 3 for this I connected the Pickit Pins to the according MCU pins. Flashing works so fine, I can also hit break and the code stops.
    What doesn't work is setting breakpoints and using step_into command. The breakpoints are not getting hit. Only when I push the break button the code stops at the breakpoint.
    For this reason I asked if this could be reasoned because the USB interface on the board, that is necessary for the voltage supply and the Pickit interfere each other.
    #4
    qhb
    Superb Member
    • Total Posts : 8317
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: online
    Re: MPLAB XPRESS 20 Pin Evaluation Board for PIC16F1845 - Breakpoints not hit 2019/01/02 02:05:42 (permalink)
    0
    Did you read all of my post?
    If you have managed to connect a PICkit3 to that board, then it sounds like you have reprogrammed the PIC16F1454 which is only intended as a "programmer on board."
    Can you confirm if your board is a DM164141 as per the link I posted.
    Can you confirm if the PK3 is actually connected to the PIC16F18345?
    If it is, how did you manage to do it when the programming pins are connected to the PIC16F1454?
     
    #5
    RonGer
    Starting Member
    • Total Posts : 32
    • Reward points : 0
    • Joined: 2018/11/27 08:43:34
    • Location: 0
    • Status: offline
    Re: MPLAB XPRESS 20 Pin Evaluation Board for PIC16F1845 - Breakpoints not hit 2019/01/02 05:14:43 (permalink)
    0
    Hi qhb,
     
    I can confirm that I use the DM164141 board.
    Regarding your question how I managed it to connect the PK3:
    I soldered Pin headers and connected the Pickit with wires to the corresponding pins, that are dedicated for debugging. I did this based on the documents that I mentioned above.
    #6
    qhb
    Superb Member
    • Total Posts : 8317
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: online
    Re: MPLAB XPRESS 20 Pin Evaluation Board for PIC16F1845 - Breakpoints not hit 2019/01/02 14:30:24 (permalink)
    0
    That board is not designed to use a separate programmer debugger.
    You are connecting in parallel with the on-board PIC16F1454 which is there to do the programming for you.
    Did you read the User Guide at the link I posted for that board?
     
    If you want to totally disable the on board programmer, you would need to remove R6 and R7, which drive the TGCLK and TGDAT pins on the target PIC.
     
    #7
    RonGer
    Starting Member
    • Total Posts : 32
    • Reward points : 0
    • Joined: 2018/11/27 08:43:34
    • Location: 0
    • Status: offline
    Re: MPLAB XPRESS 20 Pin Evaluation Board for PIC16F1845 - Breakpoints not hit 2019/01/12 04:31:59 (permalink)
    0
    Hello QHB. Could it be reasoned by the Bootloader that is currently on the chip?
    I'm not sure if it gets overwritten when I'm flashing my Software with the Pickit3.
    #8
    qhb
    Superb Member
    • Total Posts : 8317
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: online
    Re: MPLAB XPRESS 20 Pin Evaluation Board for PIC16F1845 - Breakpoints not hit 2019/01/12 05:54:00 (permalink)
    0
    Have you worked out WHICH PIC on the board you are actually programming?
    Why didn't you just use the board the way it was designed to be used?
    #9
    Jump to:
    © 2019 APG vNext Commercial Version 4.5