View previous topic :: View next topic |
Author |
Message |
alan
Joined: 12 Nov 2012 Posts: 357 Location: South Africa
|
[SOLVED] Warning message for DEBUG mode |
Posted: Wed May 11, 2022 7:22 am |
|
|
Using CCS 5.108
Get the following warning if using PIC18F25Q43:
Quote: | 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.
|
However does not get this warning when compiling same program using a PIC18F26Q10.
Change the PIC as I could not get stock of the PIC18F26Q10
Last edited by alan on Thu May 12, 2022 2:33 am; edited 1 time in total |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed May 11, 2022 4:54 pm |
|
|
I was unable to duplicate your problem.
I installed vs. 5.108. I made the test program listed below.
- I put DEBUG in the fuses list below.
- I also tried adding #device ICD=TRUE.
- I also tried setting the release mode drop-down box to DEBUG.
(using MPLAB 8.92)
I don't get the warning message. I get this in my Build messages:
Quote: | 0 Errors, 0 Warnings.
Build Successful.
BUILD SUCCEEDED: Wed May 11 15:53:11 2022
|
Test program:
Code: |
#include <18F25Q43.h>
#device ICD=TRUE
#fuses NOWDT, DEBUG
#use delay(internal=4M)
//=======================================
void main()
{
while(TRUE);
}
|
|
|
|
alan
Joined: 12 Nov 2012 Posts: 357 Location: South Africa
|
|
Posted: Thu May 12, 2022 2:25 am |
|
|
Hi PCM. This is the output if I compile just your program
Quote: | BUILD SUCCESSFUL (total time: 1s)
Loading code from /home/alan/Projects/Krappie/Switch/RelayFuse/Relays8Fuses12Iss1_2/SW/Iss1_1/dist/default/production/Iss1_1.production.hex...
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.
Program loaded with pack,PIC18F-Q_DFP,1.11.185,Microchip
Loading completed
|
|
|
|
alan
Joined: 12 Nov 2012 Posts: 357 Location: South Africa
|
|
Posted: Thu May 12, 2022 2:33 am |
|
|
OK found the problem, using MPLABX to compile and I did not change the device to 18F25Q43. Once that were done warning disappeared. Normally I found that as long as the device family are the same CCS does not complain except in this case.
Compile happily if using PIC18F26Q10 with the project options set as 18F25Q43.
Thanks for all the input. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19510
|
|
Posted: Thu May 12, 2022 3:41 am |
|
|
I suspect you will find that though the two devices are from the same
'branch' of the family, there are fuse differences. Hence the problem.
Yes, just checked, and the Q10, has the DEBUG bit where the LVP bit
is for the Q43. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19510
|
|
Posted: Thu May 12, 2022 8:05 am |
|
|
You really should have the device name set correctly in MPLAB. This IDE
overrides two bits in the fuses, the ICD, and the LVP bit according to
whether you are debugging or running, and the programmer selected.
if these bits are in the wrong location, having the setting wrong can
lead to incorrect operation. Not sensible... |
|
|
|