This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS3137: About diagnostic method of "CAN6".

Part Number: TMS570LS3137

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

  • Hello Sazabi,

    I have forwarded your question to our Software Lead so that they may provide their expert advice on this topic. They should reach out to you soon.
  • Hi Sazabi,

    Peripheral RAM access depends on each Module. Some modules are implemented in a way that CPU does not have direct access to its RAM. For eg., CAN Message RAM can be accessed by CPU only when CAN module's in Test Mode and RAM Direct Access Enable (RDA) bit is set.

    SL_CRC_Calculate is a generic implementation, which does not take of individual Peripheral configurations. Please have a look at the each Module and if needed configure it to provide Direct RAM access.