Pic18F14K50 debug bit set

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
SpeedPIC32
Posts: 252
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Pic18F14K50 debug bit set

Post 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 74 times

Steve-Matrix
Matrix Staff
Posts: 1244
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: Pic18F14K50 debug bit set

Post 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.

SpeedPIC32
Posts: 252
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: Pic18F14K50 debug bit set

Post 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

mnfisher
Valued Contributor
Posts: 953
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 507 times

Re: Pic18F14K50 debug bit set

Post 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

SpeedPIC32
Posts: 252
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: Pic18F14K50 debug bit set

Post 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

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

Re: Pic18F14K50 debug bit set

Post 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.

SpeedPIC32
Posts: 252
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: Pic18F14K50 debug bit set

Post by SpeedPIC32 »

Sorry, I had misunderstood.

Thank you

Post Reply