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 CCS Technical Support

#rom crc16(start, end) Access Violation

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



Joined: 27 Jul 2021
Posts: 14

View user's profile Send private message

#rom crc16(start, end) Access Violation
PostPosted: Wed Nov 10, 2021 10:45 am     Reply with quote

Hello,

Using PCWHD Compiler (IDE version 5.105 and PCH version 5.105), I am trying to use the #rom macro to put CRC calculation within the program memory. But for some reason the crc16 option is giving me a violation error.

The checksum option works fine:
Code:
#rom 0xFFFE = checksum


However, neither crc16 nor crc16(start, end) works for me:
Code:

#rom 0xFFFE = crc16
#rom 0xFFFE = crc16(0x002000, 0x00FFEF)


The error/info I get for those options is "Access violation at address 060A7644 in module 'PCH.dll'. Write of address 00002000" and "Internal Error - Contact CCS OUTPUT FILE .sym".

Based on the description, it would seem I have to contact CCS support. I was wondering if anyone here happen to have encountered and resolved the same issue?

Thanks!
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Wed Nov 10, 2021 11:01 am     Reply with quote

Critical extra bits of data:
What chip?.
Post the fuses.
jychua



Joined: 27 Jul 2021
Posts: 14

View user's profile Send private message

PostPosted: Wed Nov 10, 2021 12:09 pm     Reply with quote

Hey Ttelmah,

Sorry my bad. Target is PIC18F46Q10. Fuses are as follows:
Code:

#fuses   NOPPS1WAY, BROWNOUT, BORV28
#fuses   NOLVP, WDT_SW, PUT
#fuses   SCANE
#fuses   NOPROTECT, NOCPD

#use delay(CLOCK=OSCILLATOR, internal=8M)


Thanks!
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Thu Nov 11, 2021 4:03 am     Reply with quote

It is a compiler fault.
Seems to be doing the same for several compiler versions, and for different
chips.
You need to talk to CCS...
jychua



Joined: 27 Jul 2021
Posts: 14

View user's profile Send private message

PostPosted: Thu Nov 11, 2021 8:07 am     Reply with quote

Thanks for looking into this! Will do.

Best,
jychua
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