View Full Version : making hex file help
barbotte
09-24-2010, 10:06 AM
hello i am trying to make a hex file but i always have a error parameter i even change pc ... anyone can send me a hex file for the ren 64xc so i can programm my pic
send to : barbottes@hotmail.com
thanks
rstehle
09-24-2010, 11:26 AM
Have you viewed WayneJ's video (http://www.christmasinshirley.com/wiki/index.php?title=WayneJ%27s_video_series_on_PIC_pro gramming) on the subject? His video is great, and gently walks us thru all the steps to create and program a Hex file.
LabRat
09-24-2010, 12:02 PM
Also.. post the error you are getting. We might recognize it as one we have run into in the past.
barbotte
09-24-2010, 12:28 PM
yes i watch the video ... here are the few error after i clcik on asemble ..
first one is eroor in perimetre "file firmware"then i click ok then another pop up error in perimetre "pick" then i press ok and onother one pop up ..erro in perimeter " 2/renard-20071229.asm ..i press ok then onother one pop up unroconise error 32 then the window appear ... assembler error 100% then i press ok and teverything is gone
thanks
budude
09-24-2010, 12:44 PM
yes i watch the video ... here are the few error after i clcik on asemble ..
first one is eroor in perimetre "file firmware"then i click ok then another pop up error in perimetre "pick" then i press ok and onother one pop up ..erro in perimeter " 2/renard-20071229.asm ..i press ok then onother one pop up unroconise error 32 then the window appear ... assembler error 100% then i press ok and teverything is gone
thanks
Sorry - not really following this - first - are you using MPLAB to compile this - if so, which version? Maybe provide some screen shots of what's going on.
barbotte
09-24-2010, 01:16 PM
i am using mpasm v 5.37
i try to upload few screnn shot i hope it help
thanks
LabRat
09-24-2010, 01:22 PM
Ok.. some observations.. and some guesses..
1. You appear to be running MPASM directly. I (and I believe most others) run the MPLAB IDE (Integrated Development Environment). This tool allows us to create/manage projects. As such I'm not sure if my diagnostic skills will help you very much.
2. Your first error 2\Renard-20071229.asm is actually the part of the filename that appears after the last space.
(ie. if parsing.. it might be treating this as an "argument" to MPASM... which it considers invalid)
Suggestion:
Create c:\Work
Copy the renard-20071229.asm file(s) into *THAT* directory AS renard.asm
Retry with C:\work\renard.asm in the file chooser window.
OR...
Add Quotes around the filename in the Window chooser (might work??)
barbotte
09-24-2010, 02:04 PM
Ok.. some observations.. and some guesses..
1. You appear to be running MPASM directly. I (and I believe most others) run the MPLAB IDE (Integrated Development Environment). This tool allows us to create/manage projects. As such I'm not sure if my diagnostic skills will help you very much.
2. Your first error 2\Renard-20071229.asm is actually the part of the filename that appears after the last space.
(ie. if parsing.. it might be treating this as an "argument" to MPASM... which it considers invalid)
Suggestion:
Create c:\Work
Copy the renard-20071229.asm file(s) into *THAT* directory AS renard.asm
Retry with C:\work\renard.asm in the file chooser window.
OR...
Add Quotes around the filename in the Window chooser (might work??)
your the best LAB...it seem to work by putting into a WORK forder and renaming it just renard.asm ...
thanks... now time to read and learn how to programm those pic ..
by the way if i would had knew you were home today i would had stop there with my gear... you are only 1 hours away ... lol
cheer
LabRat
09-24-2010, 02:15 PM
your the best LAB...it seem to work by putting into a WORK forder and renaming it just renard.asm ...
thanks... now time to read and learn how to programm those pic ..
by the way if i would had knew you were home today i would had stop there with my gear... you are only 1 hours away ... lol
cheer
I'm at the office... well.. offices.. have to travel between the two.
If you are nearby near 5:00/6:00 let me know. I just remembered that last night I noticed that envelope that I was supposed to send you, was poking out from under our "Calendar that tracks the moments of the kids".
barbotte
09-24-2010, 02:36 PM
I'm at the office... well.. offices.. have to travel between the two.
If you are nearby near 5:00/6:00 let me know. I just remembered that last night I noticed that envelope that I was supposed to send you, was poking out from under our "Calendar that tracks the moments of the kids".
well i can be there around 5 or 6 pm with some of my gear to test .... as i cannot seem to get the pic programm ,,, that way we could test my gear too then i could finish build it it ...let me know what time is best for you as i dont work today ..BUT if you have plan with your famely i dont wan to disturb ...
thanks
budude
09-24-2010, 02:50 PM
Sort of related - but - is there any reason the 'standard' Renard hex files (say for the RenSS series) are not in the file library? It would save some time if you just need to burn a PIC and don't have MPLAB/MPASM already installed. just wondering...
DIY Guy
09-24-2010, 03:00 PM
Sort of related - but - is there any reason the 'standard' Renard hex files (say for the RenSS series) are not in the file library? It would save some time if you just need to burn a PIC and don't have MPLAB/MPASM already installed. just wondering...
I would tend to agree with this. However, I believe the intent in the past has been that it is relatively simple to compile and something a DIYer should at least attempt.
I kind of fumbled through it since MBLab is at 5.6 now and the videos are for 5.1.
dirknerkle
09-24-2010, 03:07 PM
Sort of related - but - is there any reason the 'standard' Renard hex files (say for the RenSS series) are not in the file library? It would save some time if you just need to burn a PIC and don't have MPLAB/MPASM already installed. just wondering...
I suspect that there's so much variability in what an end user wants to do that there is no true "standard" file. With BAUD rate changes, PWM, OUTPUT_NEGATIVE, DC ONLY and START_ADDRESS, about all that can be said is "here's the basic ASM and what the changes do, you can mix-and-match a lot of the changes, the MPLAB assembler is free and "go for it." :mrgreen:
budude
09-24-2010, 03:22 PM
meh - - yeah - so then you're on your own - just saying that the more common files could be stored in the library - they take all of 2KB so making a few versions shouldn't be a big deal - it would have saved barbotte an entire day. (and yes I suppose in the end he learned something but still...).
I'll build up a few and store them away.
deplanche
09-24-2010, 03:53 PM
I thought someone recently did that. But I am not seeing them in the wiki. I am guessing they are attached to a thread somewhere. Just trying to figure out which one, because searching for "hex" isn't working.
dirknerkle
09-24-2010, 04:10 PM
Iknowwhutchamean....
When I made all my start_address files, I made an entire set with exactly the settings I needed except with a different start_address setting. I'd make the change in the asm, save it, load it into the compiler, compile it, rename the resulting HEX file with the address and then repeat the process with the next start_address. Took only about 15 minutes to make the 36 HEX files for start addresses 0-35 which covers 286 channels, the suggested maximum Renard can handle at 57600 baud. It really is handy to have exactly the file you need handy, load it into the programmer, attach an ICMP clip onto the PIC, flash it and disconnect.
One problem is developing a file naming convention that would help a person know what the heck the file's internal settings are or some sort of crossindex that would allow you to know what is what. Otherwise, all you end of with is a bunch of files that by themselves, just take up space and I can see the postings now... "Which file do I use???" and the answers would always start with, "it depends on what you need..." :rolleyes:
I think that, in the end, the very best solution is the way it is now: the individual has to acquire the DIY skills to edit the ASM, compile the HEX and flash the chips according to his/her need.
barbotte
09-24-2010, 04:29 PM
Iknowwhutchamean....
I think that, in the end, the very best solution is the way it is now: the individual has to acquire the DIY skills to edit the ASM, compile the HEX and flash the chips according to his/her need.
i kind of agree with that statement and that is why i am asking for help so i do not have to relied on alredy made file ..but it would be good to have some to try so we can figure out if it is computor problem or hardware ,,, or end user lol
cheer
DIY Guy
09-24-2010, 05:42 PM
one of the other issues barbotte had was the pickit 2 was not in the list of programmers.. i just installed 8.56 and pickit 2 is #7 in the list.
Wayne J
09-24-2010, 08:42 PM
I need to make the video using the PicKit2 software. At the time I made the programming videos, I had no idea MPLABS would update dang near monthly, making the video obsolete in a month LOL. I really wish folks would use MPASMWIN to compile with and the PicKit2 software to program with. It is SOOOOOOOOOOOOO much more simple. There is a .pdf for use of the PicKit2 software in the wiki. (http://www.christmasinshirley.com/wiki/images/3/38/How_to_program_a_PIC.pdf)
barbotte
09-25-2010, 01:17 AM
well getting closer here is the lastes error ...hope it mean something for your guys
tanks
budude
09-25-2010, 01:36 AM
Personally, I use the PICKit2 tool to program the PICs - you might try that just to see if there's a configuration issue with MPLAB.
LabRat
09-25-2010, 02:28 PM
MPLAB - Configure - Select Device... make sure the 16F688 is selected. If you have some *other* device selected, then if/when the pickit probes your chip, it will find they aren't the same.
You will then get the "Unexpected device ID: Please verify that..." message.
barbotte
09-25-2010, 03:10 PM
well after trying with pickit2 programm it totaly seem that for some reason it does not reconise or see the crattle ... so i cannot programm pic ... i am not having fun ...lab is there a jumper or something that i have to move ??
thanks
dirknerkle
09-25-2010, 03:26 PM
I need to make the video using the PicKit2 software. At the time I made the programming videos, I had no idea MPLABS would update dang near monthly, making the video obsolete in a month LOL. I really wish folks would use MPASMWIN to compile with and the PicKit2 software to program with. It is SOOOOOOOOOOOOO much more simple. There is a .pdf for use of the PicKit2 software in the wiki. (http://www.christmasinshirley.com/wiki/images/3/38/How_to_program_a_PIC.pdf)
Wayne is dead-solid right on this one. MPASMWIN is a piece of cake. Highly suggested.
LabRat
09-27-2010, 08:37 AM
well after trying with pickit2 programm it totaly seem that for some reason it does not reconise or see the crattle ... so i cannot programm pic ... i am not having fun ...lab is there a jumper or something that i have to move ??
thanks
Sorry.. away from the PC all weekend. No jumpers.. but are you putting the device in the correct location? Can we get together at some point, so I can see your PicKit/Cradle etc?
dirknerkle
09-27-2010, 09:08 AM
I keep reading about all the configuration problems and additional cumbersome dongles, cables, jumpers, and other settings for the PicKit2 and PicKit3, and while I recognize the flexibility the PicKits *can* provide to the truly experienced user, I can't help but wonder why more of us *normal* folks don't purchase plug-in-and-go items like this one from Kee Electronics.
http://cgi.ebay.com/USB-Microchip-PIC-Programmer-Ship-USA-/310121494805?pt=LH_DefaultDomain_0&hash=item4834ae7915
I have two of these little programmers, I plug them into the USB port and they work every time. I have one set up with an ICSP cable and test clip so I can program pics in-circuit and keep the other one as a desktop/backup unit. I've found them to be just a pleasure to use and for $40 bucks delivered price, you can hardly go wrong.
It's just an opinion, but I like to use tools that work first time, every time. I really don't enjoy trying to solve problems with the diagnostic tools, too... :roll:
Wow, that is an even better deal that what j1sys is offering (http://cgi.ebay.com/ICSP-Adapter-8-14-pin-PIC-w-PICkit-2-USB-Programmer-/230432419578?cmd=ViewItem&pt=LH_DefaultDomain_0&hash=item35a6d7aefa#ht_5010wt_759) ($51) although it is not an official PICkit2 but hey, if it works.
barbotte
09-27-2010, 05:40 PM
Sorry.. away from the PC all weekend. No jumpers.. but are you putting the device in the correct location? Can we get together at some point, so I can see your PicKit/Cradle etc?
i was there on friday but due to constructon trafic i could not make it in time ...so you were gone already ...i should had give your wife my phone # as i stay in the area until 9 pm lokking at christmast ligh at your canadien tire and wall mart lol ... not sure when i am going back there but maybe this week end or maybe i should just send you the everything think trough mail so you can test it ...
cheer
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.