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

PIC18F47J53 CCS C Compiler 5.090 #FUSES DSWDT issue

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



Joined: 09 May 2020
Posts: 110

View user's profile Send private message

PIC18F47J53 CCS C Compiler 5.090 #FUSES DSWDT issue
PostPosted: Fri Jul 17, 2020 9:46 am     Reply with quote

Hi,

when I try to use (they are included in 18F47J53.h device library):

#FUSES DSWDT_38HRS

or

#FUSES DSWDT_9HRS

I got: Error#111 Unknown keyword in #FUSES "DSWDT_*"

I need to use these fuses, does anyone know any workaround ?
Is it a compiler bug?

Regards,

Marco
Ttelmah



Joined: 11 Mar 2010
Posts: 19195

View user's profile Send private message

PostPosted: Fri Jul 17, 2020 12:25 pm     Reply with quote

OK.
Understand the .h file only 'lists' the fuses that should exist, doesn't
define them. The actual definition is in the .dat file for the compiler.
Sounds as if these ones have got missed...

So the solution is two part:
1) Talk to CCS, and point out that this is not working. They may
well have already fixed it and send you a new file to fix the compiler.
2) To get round it, set the fuse needed manually.
The syntax is:

#FUSES 1=0xCF00 // sets config word 1 to 0xCF00

So you need to identify what word needs to be set, and to what
value, and use this.
Ttelmah



Joined: 11 Mar 2010
Posts: 19195

View user's profile Send private message

PostPosted: Sat Jul 18, 2020 10:53 am     Reply with quote

The fuse database for this seems to be completely screwed....

If you try:

#fuses 3=0xF9DF

The .lst file reports is as:

Word 3: F9DF DSWDTOSC_INT RTCOSC_T1 DSBOR DSWDT DSWDT_8SEC NOIOL1WAY ADC12 MSSPMSK5

So says this is the setting for 8 seconds. However the data sheet says
that 0b1101 in the upper nibble of the low word, is the setting for 38.5
hours... Sad

This should be the setting for 38 hours.
Marco27293



Joined: 09 May 2020
Posts: 110

View user's profile Send private message

PostPosted: Mon Jul 20, 2020 1:36 am     Reply with quote

Thank you Ttelmah,

I really appreciate your help.

Regards,

Marco
Ttelmah



Joined: 11 Mar 2010
Posts: 19195

View user's profile Send private message

PostPosted: Mon Jul 20, 2020 1:50 am     Reply with quote

I have emailed CCS pointing out that there is a problem.... 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