Error In Hex File Fuse
» Compilers » mikroBasic Compilers » mikroBasic PRO compiler for PIC » mikroBasic PRO for PIC General All times are UTC + 1 hour Error in HEX file - FUSE Page 1 of 1 [ 2 posts ] Print view Previous topic | Next topic Author Message oz3qy Post subject: Error in HEX file - FUSEPosted: 16 Nov 2009 12:57 Joined: 16 Nov 2009 12:35Posts: 1 Hello all I encounter problems when I try to compile for another PIC. In order to get on "speaking terms" with the Basic PRO compiler, I have tried to compile the tutorial programme "LED_Blinking". Compiling to the P18F8520 as specified in the program, works perfectly. When I try to change the pic to 18F4520 I get this error message from my MicroPro USB programmer: Error in HEX file - FUSE Line: 9 :0D000100021F1EFF8381FF0FC00FE00F40A4 I changed the projecy settings to: P18F4520 Clock: 40 MHz In the Project Edit I have set the sonfiguration bits to default. I have tried to do compile to both pics using the old Basic compiler, which works superb. Where do I go wrong in the PRO compiler? Regards Jan Top anikolic Post subject: Posted: 18 Nov 2009 11:37 mikroElektronika team Joined: 17 Aug 2009 16:51Posts: 1774Location: Belgrade Hi, If you were using some other programmer than PICFlash, than you might have experienced the similar problem as one other user on the forum, on whose post I have already answered. Please take a look at: http://www.mikroe.com/forum/viewtopic.php?p=113370#113370 Best regards, Aleksandar _________________Web Department Manager Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 yearSort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] Board index » Compilers » mikroBasic Compilers » mikroBasic PRO compiler for PIC » mikroBasic PRO for PIC General All times ar
Many features may not work properly without it. Please enable JavaScript in your browser settings. Reply Author Comment Bob Axtell Posted 1108397816 Reply with quote #1 There is a bug in the FuseEdit routines in MicroPro. This is an instability, caused by an occasional range error (undefined variable at initialisation). The fix appears to be to manually enter the FUSE EDIT routine and press OK then exit. That allows everything to program properly from that point on. We are working on this now. Thanks to the users who http://forum.mikroe.com/viewtopic.php?t=22545 discovered and verified the workaround. --Bob Kevin Posted 1108411284 Reply with quote #2 Bob I've tried that every which way, and I'm still getting the error and pic fails to operate. Kevin Bob Axtell Posted 1108427406 Reply with quote #3 Then something else is going on. let's start all over with the symptoms. What's happening, Kevin? (I talk with too many people and lose track). --Bob https://diykit.websitetoolbox.com/post/notice-fuse-errors-workaround-309247 j.funkie Posted 1109544602 Reply with quote #4 Hi I'm getting a different fuse error. When i load a hex file i'd generated from MPLAB (coded in C), i get the following error: Error in HEX file - FUSE Line : 197 :0100010026D8 Now.. what can i do? Bob Axtell Posted 1109559980 Reply with quote #5 Quote:Originally Posted by j.funkieHi I'm getting a different fuse error. When i load a hex file i'd generated from MPLAB (coded in C), i get the following error: Error in HEX file - FUSE Line : 197 :0100010026D8 Now.. what can i do? The problem is in MicroPro, which thinks all PIC words must be over 8 bits. There is a workaround- simply load the hex file into MPLAB, then read it out again, and it will be in a form that MicroPro can take. We are trying to repair this and other, more serious errors in MicroPro presently, but with a new human programmer, and a new, updated comnpiler, its a rough road. We'll fix it soon. (Those humans: they'll never work out...). --Bob View Member Profile Send Email Find Member's Topics Find Member's Posts MrTrick Registered:1134391301Posts: 10 Poste
Many features may not work properly without it. Please enable JavaScript in your browser settings. Reply Author Comment View Member Profile Send Email Find Member's Topics Find Member's Posts LosFrijoles http://diykit.websitetoolbox.com/post/error-in-hex-file-fuse-2062424 Registered:1183845945Posts: 11 Posted 1186090871 Reply with quote #1 There was a topic on this that I found in search, but it is so old I am not about to try to see if the person who offered help there is still here...I am having the same problem as this guy except with a 18F4320. Could someone tell me how I could obtain this FIXHEX program? View Member Profile Send Email Find Member's Topics Find Member's Posts error in Frank Moderator Registered:1122801962Posts: 1,874 Posted 1186096887 Reply with quote #2 http://kitsrus.com/zip/fixhex.zip View Member Profile Send Email Find Member's Topics Find Member's Posts LosFrijoles Registered:1183845945Posts: 11 Posted 1186140703 Reply with quote #3 Thank you.Sadly, It does not seem like that fixed the problem. It worked (ish) once, changing the error message to "invalid line length" but then it returned to the original fuse error. Does anyone know what is going on here? I am using batch error in hex files to build the code using the mcc18 compiler. View Member Profile Send Email Find Member's Topics Find Member's Posts polly Registered:1129408935Posts: 26 Posted 1186236413 Reply with quote #4 If it's just the config values, you can try removing the 'config' lines from the hex file and set up your config values from the menu or alternatively manually re-write the config lines in your hex files .. that way you have to re-calculate the checksum, too. View Member Profile Find Member's Topics Find Member's Posts newfound Registered:1123288012Posts: 497 Posted 1186283071 Reply with quote #5 If you cannot get fixhex to work maybe you could post the offending lines so that someone with experience with fixhex can verify your problem and/or provide a solution. There just isn't the feedback here to suggest that fixhex doesn't work. It has been around for a while and seems well proven to me. View Member Profile Send Email Find Member's Topics Find Member's Posts LosFrijoles Registered:1183845945Posts: 11 Posted 1186313698 Reply with quote #6 I discovered that mcc18 was only outputing the first two (of 11) words of the config and that was the problem. I then made a program which inserts the config after the end file line of the hex file and now it works. View Member Profile Find Member's Topics Find Member's Posts newfound Registered:1123288012Posts: 497 Posted