View previous topic :: View next topic |
Author |
Message |
jychua
Joined: 27 Jul 2021 Posts: 14
|
#rom crc16(start, end) Access Violation |
Posted: Wed Nov 10, 2021 10:45 am |
|
|
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: 19552
|
|
Posted: Wed Nov 10, 2021 11:01 am |
|
|
Critical extra bits of data:
What chip?.
Post the fuses. |
|
|
jychua
Joined: 27 Jul 2021 Posts: 14
|
|
Posted: Wed Nov 10, 2021 12:09 pm |
|
|
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: 19552
|
|
Posted: Thu Nov 11, 2021 4:03 am |
|
|
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
|
|
Posted: Thu Nov 11, 2021 8:07 am |
|
|
Thanks for looking into this! Will do.
Best,
jychua |
|
|
|