Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 27th April 2007, 01:59 PM   (permalink)
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.
gregmcc is offline  
Old 27th April 2007, 02:10 PM   (permalink)
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
Nigel Goodwin is offline  
Old 27th April 2007, 02:12 PM   (permalink)
Default

Its the one by John Becker - LCFmet790.asm Correction - Its also from everyday practical eletronics and not elektor.
gregmcc is offline  
Old 27th April 2007, 02:25 PM   (permalink)
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
Nigel Goodwin is offline  
Old 27th April 2007, 04:20 PM   (permalink)
Default

Aah - thanks. That did the trick. Didnt see that import there before
gregmcc is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
UNIT Committment solution using Dynamic programming arijit18 Electronic Projects 1 18th October 2007 09:28 PM
Good Programing Techniques Suraj143 Micro Controllers 5 27th April 2007 08:27 AM
Standalone Pic Programmer Using ICSP or RS232 Neiwiertz Micro Controllers 11 27th May 2006 02:23 AM
Need Help GAL/PAL Programming Steel General Electronics Chat 2 15th May 2004 12:16 AM
how would i generate HEX file for multiple assembly files? belinda_sg Micro Controllers 2 30th March 2004 08:54 AM



All times are GMT. The time now is 11:20 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker