CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug Reports on this forum. Send them to support@ccsinfo.com

[SOLVED] Warning message for DEBUG mode

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
alan



Joined: 12 Nov 2012
Posts: 336
Location: South Africa

View user's profile Send private message

[SOLVED] Warning message for DEBUG mode
PostPosted: Wed May 11, 2022 7:22 am     Reply with quote

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: 21644

View user's profile Send private message

PostPosted: Wed May 11, 2022 4:54 pm     Reply with quote

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: 336
Location: South Africa

View user's profile Send private message

PostPosted: Thu May 12, 2022 2:25 am     Reply with quote

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: 336
Location: South Africa

View user's profile Send private message

PostPosted: Thu May 12, 2022 2:33 am     Reply with quote

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: 17981

View user's profile Send private message

PostPosted: Thu May 12, 2022 3:41 am     Reply with quote

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: 17981

View user's profile Send private message

PostPosted: Thu May 12, 2022 8:05 am     Reply with quote

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... Sad
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group