I currently use TMS570LS3137.
(Reference document = "Safety Manual for TMS 570LS31x and TMS570L21x Hercules ARM-Based Safety Critical Microcontrollers User's Guide")
Please tell me about "CAN6" items.
Currently I downloaded the library (safety_library) introduced and I am looking at the contents.
Please tell me about the function "SL_CRC_Calculate (uint64 * startAddr, uint32 count64);".
I am trying to calculate the CRC of "DCAN data" on SRAM using the following function.
CanRAM1 CRC = SL_CRC_Calculate (((uint64 *) 0xFF1E0000U), 256);
"Safety Manual" has the following description.
----
7.95 Periodic Hardware CRC Check of SRAM Contents
CRCmodule can be used to test the integrity of static contents in the SRAM by CRC for all static contents and comparing this value to a previously generated "golden" CRC.
----
Question items are as follows:
(1) If CRC of "DCAN data" on SRAM can be calculated with "SL_CRC_Calculate", what kind of operation is necessary to obtain "golden CRC" for comparison with this calculation result Is it?
(2) Can modules other than "CAN6" (eg ETH6) calculate CRC by changing the memory address using the same function?
Best Regards,
Sazabi