Author |
Message |
Topic: CRC16 always 0000 |
Eric_91
Replies: 14
Views: 27726
|
Forum: General CCS C Discussion Posted: Wed Jun 10, 2020 3:03 am Subject: CRC16 always 0000 |
Hello Ttelmah,
Indeed, I use the MPLAB X IDE.
I understand better now why we had trouble understanding each other.
I will try to obtain additional information on the MPLAB X linker.
In any c ... |
Topic: CRC16 always 0000 |
Eric_91
Replies: 14
Views: 27726
|
Forum: General CCS C Discussion Posted: Tue Jun 09, 2020 8:41 am Subject: CRC16 always 0000 |
So sorry, I understand quickly but I have to explain myself for a long time.
Can you watch the project: http://dl.free.fr/mDJVITHNM
So, please tell me what to change to make it work lik ... |
Topic: CRC16 always 0000 |
Eric_91
Replies: 14
Views: 27726
|
Forum: General CCS C Discussion Posted: Tue Jun 09, 2020 7:40 am Subject: CRC16 always 0000 |
There is no file which imports the other files since in Multiple compilation Units (MCUs) the project includes a tree structure which integrates the source files. |
Topic: CRC16 always 0000 |
Eric_91
Replies: 14
Views: 27726
|
Forum: General CCS C Discussion Posted: Tue Jun 09, 2020 6:37 am Subject: CRC16 always 0000 |
Hello Ttelmah
Thank you for your patience
I added the line
#ROM 0x0057FA = crc16 (0x000200, 0x0057F4)
in the file project_mcu.c and I loaded the code with ICD4.
It still doesn't work. :sa ... |
Topic: CRC16 always 0000 |
Eric_91
Replies: 14
Views: 27726
|
Forum: General CCS C Discussion Posted: Tue Jun 09, 2020 5:40 am Subject: CRC16 always 0000 |
I loaded the CCS_MCU project and read your message with great interest.
I changed the processor. Compilation and link editing are ok.
But I don't understand in which file I should include the direct ... |
Topic: CRC16 always 0000 |
Eric_91
Replies: 14
Views: 27726
|
Forum: General CCS C Discussion Posted: Tue Jun 09, 2020 2:26 am Subject: CRC16 always 0000 |
Hello Ttelmah,
Thanks a lot for your answer.
I also think the problem comes from MCUs.
In the CCS manual there is this mysterious sentence: "When linking multiple compilation units be aw ... |
Topic: CRC16 always 0000 |
Eric_91
Replies: 14
Views: 27726
|
Forum: General CCS C Discussion Posted: Mon Jun 08, 2020 7:32 am Subject: CRC16 always 0000 |
Thank you for your answer,
The syntax in the CCS manual is : #ROM address = crc16(start, end)
So when i put "#ROM 0x0057FA = crc16 (0x000200, 0x0057F4)", 0x0057FA is normally a ... |
Topic: CRC16 always 0000 |
Eric_91
Replies: 14
Views: 27726
|
Forum: General CCS C Discussion Posted: Mon Jun 08, 2020 5:29 am Subject: CRC16 always 0000 |
Hello
I am trying to check the integrity of the flash memory of my DSPIC33FJ64GS608.
I use several compilation units.
So I put the directive "#ROM 0x0057FA = crc16 (0x000200, 0x0057F4)" ... |
|