+ Reply to Thread
Results 1 to 5 of 5

Thread: Programming HEX file with MPlab/Inchworm

  1. #1
    gregmcc Newbie
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    234

    Default Programming HEX file with MPlab/Inchworm

    I'm busy building a LCF project from an elektor magazine. I've got the asm and hex file and would like to know how to program it with mplab (using a inchworm)

    If I open the asm file and compiled it with mplab there's a ton or errors, so I thought since i've also got the compiled .hex file I could just write it to the PIC.

    Can I just open the hex file in mplab and program it? Or does mplab automatically compile the asm file and them program it.


  2. #2
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,793

    Default

    If it's the one I'm thinking of?, the HEX file doesn't work either - it was bizzarely asembled with masses of blank bytes stored in the HEX file, and pieces of the code missing.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  3. #3
    gregmcc Newbie
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    234

    Default

    Its the one by John Becker - LCFmet790.asm Correction - Its also from everyday practical eletronics and not elektor.

  4. #4
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,793

    Default

    Quote Originally Posted by gregmcc
    Its the one by John Becker - LCFmet790.asm Correction - Its also from everyday practical eletronics and not elektor.
    That's a different matter then, that file works fine.

    The source code probably isn't written for MPASM, John Becker had never even heard of MPASM until I told him about it years back, he was using a shareware assembler instead?.

    To load the HEX file, try File/Import.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  5. #5
    gregmcc Newbie
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    234

    Default

    Aah - thanks. That did the trick. Didnt see that import there before

+ Reply to Thread

Similar Threads

  1. UNIT Committment solution using Dynamic programming
    By arijit18 in forum Electronic Projects
    Replies: 1
    Latest: 18th October 2007, 08:28 PM
  2. Good Programing Techniques
    By Suraj143 in forum Micro Controllers
    Replies: 5
    Latest: 27th April 2007, 07:27 AM
  3. Standalone Pic Programmer Using ICSP or RS232
    By Neiwiertz in forum Micro Controllers
    Replies: 11
    Latest: 27th May 2006, 01:23 AM
  4. Need Help GAL/PAL Programming
    By Steel in forum General Electronics Chat
    Replies: 2
    Latest: 14th May 2004, 11:16 PM
  5. how would i generate HEX file for multiple assembly files?
    By belinda_sg in forum Micro Controllers
    Replies: 2
    Latest: 30th March 2004, 07:54 AM

Tags for this Thread