Debugging and Using the Simulator 🔴 PIC Microcontroller Programming Tutorial #13 MPLAB in C

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ส.ค. 2024

ความคิดเห็น • 27

  • @BinderTronics
    @BinderTronics  4 ปีที่แล้ว

    Full playlist on the PIC microcontroller Programming th-cam.com/video/KSI6fzOPVz0/w-d-xo.html
    If there is anything you would like to see let me know.

  • @jeandupuis8992
    @jeandupuis8992 3 ปีที่แล้ว +2

    Very good video, as usual. Always something to learn.

  • @alguti2000
    @alguti2000 2 ปีที่แล้ว +1

    This is a great tutorial! Thanks!

  • @cohai6913
    @cohai6913 3 ปีที่แล้ว +1

    thanks for sharing

  • @petermatthiesen8288
    @petermatthiesen8288 3 ปีที่แล้ว

    Thank you, good work. One wish from me would be that sometimes you move a bit fast with your mouse. Then its hard to follow. Go to the point you want to choose, make a small pause before clicking. Thanks.

    • @BinderTronics
      @BinderTronics  3 ปีที่แล้ว

      You can always set the playback speed with | shift + . | and | shift + , | on PC.

    • @petermatthiesen8288
      @petermatthiesen8288 3 ปีที่แล้ว

      @@BinderTronics Thank you so much for your reply. It will help but I think I will get some problems with the audio. Anyway, I will do it, thanks,

  • @ememeable
    @ememeable ปีที่แล้ว +1

    thankyou

  • @nileshsapkale7973
    @nileshsapkale7973 7 หลายเดือนก่อน +1

    when i build that time error come, so how i track them?

    • @BinderTronics
      @BinderTronics  7 หลายเดือนก่อน

      Please post the error code. I am unable to decode what you are saying.

  • @dariodias3884
    @dariodias3884 ปีที่แล้ว

    For a pic with 20 Mhz crystal what should be the instruction frequency (Fcyc) in the simulator settings under oscillator options

  • @xindiange
    @xindiange 6 หลายเดือนก่อน

    many thanks, could you please make a video of debugging by PICkit3?

    • @BinderTronics
      @BinderTronics  6 หลายเดือนก่อน

      This is with a PICkit3

  • @osaiyare8165
    @osaiyare8165 3 ปีที่แล้ว

    dont know if you're still replaying, but i dont have that 'Hardware Tool' options at 0:52

    • @BinderTronics
      @BinderTronics  3 ปีที่แล้ว

      Are you sure you selected Conf[Default]? What version of MPLAB X IDE are you using? You might have a broken install or the project is not setup correctly. Unless Microchip changed the MPLAB IDE in newer version witch I doubt since that option has been the same for about 8-10 years now.

    • @osaiyare8165
      @osaiyare8165 3 ปีที่แล้ว

      @@BinderTronics I'll look through everything again and let you know, thanks. Do you have a video about the download and installation by chance?

    • @BinderTronics
      @BinderTronics  3 ปีที่แล้ว

      @@osaiyare8165 Full playlist. starts with software install. th-cam.com/video/KSI6fzOPVz0/w-d-xo.html

  • @rameshbandi279
    @rameshbandi279 3 ปีที่แล้ว

    Can you help me where I can see the clock output

    • @BinderTronics
      @BinderTronics  3 ปีที่แล้ว

      If you mean the clock output pin. Then you can use the logic analyzer. It is in the same place as stimulus.

  • @jonathancamarillooceguera5075
    @jonathancamarillooceguera5075 4 ปีที่แล้ว

    Hello, good day, do you think you can help me with a problem please, is that I am a student and I installed MPLAB X ide version 5.40 and compiler Xc8 2.20 the most recent one now, but I had another one that obviously uninstalled the other, the problem lies in how much I have to use the debug I put a break point in any line and it gives me broken then I get the following legend
    Break point at line 79 in file C: / Users / jonathan / Desktop / Programs assembly PIC18F46k22 / test_1.X / test_1.s cannot be resolved to a valid program memory address
    and this also comes out
    No source code lines were found at current PC 0xfff2. Open program memory view to see instruction code disassembly.
    I would really appreciate it too much I'm doing Assembler programs

    • @BinderTronics
      @BinderTronics  3 ปีที่แล้ว

      Use a NOP instruction where you want the breakpoint to be. It has been ages since I worked in ASM but here what is the cause in C.
      Not all C statements resolve to a line of assembly code, so you can't break on them.
      The NOP() macro is useful in that case as a break target.

  • @bahadrguven6268
    @bahadrguven6268 2 ปีที่แล้ว

    Do you use Pickit or else?
    I wonder your hardware conneciton

    • @BinderTronics
      @BinderTronics  2 ปีที่แล้ว

      th-cam.com/video/V7d6jhzMgYY/w-d-xo.html
      Pickit 4. You can also use a MPLAB SNAP. Working Pickit 3 are hard to find. Was using a original Pickit 3 I got many moons ago in this video.

    • @bahadrguven6268
      @bahadrguven6268 2 ปีที่แล้ว

      @@BinderTronics thx

    • @bahadrguven6268
      @bahadrguven6268 2 ปีที่แล้ว

      I have pic kit3 and PIC18F2550 .I am able to programme pic but I am not able to debugging. Do you know any other technique for debugging.

    • @BinderTronics
      @BinderTronics  2 ปีที่แล้ว

      Disable the low power programming config bits. Try without breakpoints first