Programming a PIC from HiTide?

Discussion in 'Embedded Systems and Microcontrollers' started by spinnaker, Dec 16, 2009.

  1. spinnaker

    Thread Starter AAC Fanatic!

    Oct 29, 2009
    4,887
    1,016
    I'm new to PICs and thought I would give the Hi-Tide IDE a try along with the HiTech C compiler for the 18F PIC.


    I can get a project built and complied just fine but I cannot figure out how to actually program the PIC! I searched all over Hi-Techs site and found nothing. They have some wonderful tutorials on how to write a program in PDF and in Eclipse Cheat Sheets. They talk all about running the debugger but not one word on how to actually program the PIC!!!

    There is nothing in the IDE that I can see that programs the PIC. The only thing that comes close is Tool\Chip Erase.

    But then I get

    java.io.IOException: Could not connect to the USB device. Make sure HI-TECH JTAG device is connected


    So I go to Hi-Techs site to do a search and they don't even have a search function on their site!


    Anyone know how to get this to work?
     
  2. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234
    The JTag interface device is only used for the PIC32MX family of IC's.... I have only seen it come in the "Hi-Tch C Pro for Pic32 MCU Family" package... (like mine did :rolleyes:)

    Hitech_Jtag_1.jpg

    Hitech_Jtag_2.jpg

    Most likely you will have to have a separate programmer for the uc like a Pickit2 / pickit3 or similar to program the hex file..

    Do you have a programmer??
     
  3. spinnaker

    Thread Starter AAC Fanatic!

    Oct 29, 2009
    4,887
    1,016
    Yes so sorry, should have mentioned it. I have the PicKit 3.

    But there is nothing in the IDE that gives you access to the PicKit 3. It's simple to finf in MPLab.

    Is there another way to send the hex file to the programmer?


    And even if I could, I am guessing I could not debug on the PIC?
     
  4. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234

    You can program the hex file to the pic via the application that came with the pickit 3, open up that app and just load the compiled hex file....

    And no, you can not debug unless you have the JTAG debugger and you are using Pic32 uc .....



     
  5. spinnaker

    Thread Starter AAC Fanatic!

    Oct 29, 2009
    4,887
    1,016
    Nothing came with the PicKit3. They recommended using MPLab.


    MPLab is horrible (the IDE that is)! It is like programming back in the stone age. I sure wish they used Eclipse instead.


    But it looks like I found an eclipse for MPLAB.

    http://www.chiefdelphi.com/forums/showthread.php?t=35571
     
    Last edited: Dec 16, 2009
Loading...