Page 1 of 1

Pic18F14K50 debug bit set

Posted: Fri May 13, 2022 5:49 pm
by SpeedPIC32
<hello team
I always have this message from MPLAB IPE v6.00 when I want to load the hexcode. Warning: The hex file has the debug bit set. The debug bit has been cleared during load to memory. The original hex file has not been modified.

Thanks
formal 1.fcfx
(10.52 KiB) Downloaded 76 times

Re: Pic18F14K50 debug bit set

Posted: Sun May 15, 2022 12:26 pm
by Steve-Matrix
I've looked into this and it could possibly be a bug in the XC8 compiler because the DEBUG bit is being set wrong even though it is correct in Flowcode.

If this does not affect the program, then you can probably ignore it.

Re: Pic18F14K50 debug bit set

Posted: Mon May 16, 2022 7:26 pm
by SpeedPIC32
Hi Steve,
I can't load the HEX code into MPLAB IPE v6.00 because of this.
is there any way around this error?

With kind regards
SpeedPic32

Re: Pic18F14K50 debug bit set

Posted: Mon May 16, 2022 9:59 pm
by mnfisher
As a suggestion for a (very) temporary fix - a while ago I wrote a short program that read a hex file, found and modified a variable and wrote it out again (it incremented a serial number). I'm fairly sure out could be modified to clear the debug bit.. Then the batch file can be altered to add this as an initial step.

Also take a look at https://pickitplus.co.uk/Typesetter/ for an alternative to the mplab ipe for programming the hardware..

Martin

Re: Pic18F14K50 debug bit set

Posted: Wed May 18, 2022 5:27 pm
by SpeedPIC32
Hello mnfisher
I use the ICD 3 programmer for programming.
It would be better to use another compiler without this error.

Sincerely SpeedPic32

Re: Pic18F14K50 debug bit set

Posted: Wed May 18, 2022 6:26 pm
by BenR
Hello,

Your original message indicated that the ipe was loading the file and automatically clearing the bit for you with a warning that the hex file wasnt edited. That indicates it is loading the file.

What makes you think it isn't loading the file?

Also you can use any version of xc8 you like with flowcode. We provide a known working version but the latest version should also work fine if you want to try that. Should be posts on the forum regarding how to set this up.

Re: Pic18F14K50 debug bit set

Posted: Wed May 18, 2022 6:49 pm
by SpeedPIC32
Sorry, I had misunderstood.

Thank you