S7 IEC60730 Self-test Library

Hello,

In my application I need to perform a memory check at the startup, in particular I want to check the RAM and Flash integrity. I see there is a IEC60730 Selftest Library available for S7 devices. Is there an example code that shows how those functions are managed?

Thanks in advance,

regards.

  • Hello Laser,

    We provide IEC60730 self-test library for S7G2 devices on the Gallery: synergygallery.renesas.com/.../utility . All documentation is provided also.

    Regards
  • In reply to Renesas Karol:

    Hi,
    in the release note document, in the RAM test chapter is written that the "diagnostic software release works with: IAR Embedded Workbench for ARM". I am developing on e2studio 5.4. Is this ISDE supported too?
  • In reply to Laser:

    Hello Laser,

    I believe the library is qualified and certified for IAR Functional Safety lib, since functional safety certification is only obtainable for IAR at the current stage. However, browsing through the source I did not see any compiler specific code so the library should also work under GCC.

    Regards
  • In reply to Renesas Karol:

    Thanks Karol.
    One question more: in the Release Note documentation there is a reference for "SW User Guide for IEC 60730 , ID= SWD_006_1, rev.1.0.", but i cannot find such document in the self-test library folder nor in the Gallery. Where can I find the mentioned user guide?
    Thank you!
  • In reply to Laser:

    Hello Laser,

    I believe this is the document you're looking for: synergygallery.renesas.com/.../r01an3492eu0100-synergy-s7g2-iec60730.pdf .

    Regards
  • In reply to Renesas Karol:

    Karol,

    I tryied to perform a RAM test at the startup, but it always fails. In my main_thread_entry function, I call:

    bool bRamTestResult;

    uint32_t uiRamTest_startAddr = 0x0000;

    uint32_t uiRamTest_endAddr =0x1000;

    bRamTestResult = RamTest_March_C(uiRamTest_startAddr, uiRamTest_endAddr, NULL);

    if(bRamTestResult == false)

     while(1);

    In ramtest_march_c.h I have:

    #define RAMTEST_MARCH_C_ACCESS_SIZE     RAMTEST_MARCH_C_ACCESS_SIZE_8BIT

    and USE_HW_VERSION_OF_RAM_TESTS is not defined.

    IS there something I am missing? Is there the need for any initialization function?

    Thanks.

  • In reply to Laser:

    Hello Laser,

    On S7G2, SRAM starts at 0x1FFE0000 and ends at 0x2007FFFF. Please refer to section 4 of the S7G2 User's Manual (i.e. Hardware Manual) for complete map of the address space.

    Regards
  • In reply to Renesas Karol:

    Karol,

    yes, you are right. I am trying with the code posted above (with addresses you provided), but while performing the RAM test, the execution stops at the following error function:

    Is there a way to understand the reason for the malfunctioning?

    Thank you!

  • In reply to Laser:

    Hello Laser,

    Can you provide a stack trace from "Debug" window? This may to determine what caused hard fault.

    Regards
  • In reply to Renesas Karol:

    I recently downloaded Version 1.2.0 of "S7G2 IEC60730 Self-Test Library (29-Nov-2016) per the Application Note R01AN3492EU0101. I have two questions:

    1) Is this code compatible with SSP 1.3.3?

    2) Is there a prescribed procedure for incorporating this code into one's project? Should one merely copy the source files into src/ and then add them to the build? Or should these selftests be added like a Synergy framework (e.g. touch)? The application note goes into detail about how the tests work and how to invoke them; however I did not find information on how to add them in.

    Many thanks!
    Erik
  • In reply to erik:

    Hello Erik,

    The self-test library doesn't rely on SSP, so it should work regardless of the SSP version used. Yes, these files should be added to the build (e.g. copied to src/ directory) and later invoked as noted in the application note.

    Regards,
    adboc
  • In reply to adboc:

    Many thanks for your advice!
    Have a good day,
    Erik
  • In reply to Renesas Karol:

    Hi Karol,

    Does this directly compiles under GCC? I'm getting errors in ASM file when compiled with SSP - e2studio - GCC
  • In reply to gnk:

    Hi GNK-
    Can you list a few of the first errors you are seeing?

    Thanx,
    Warren
  • In reply to WarrenM:

    Thanks Warren,

    Errors are in ASM and it shows errors starting from first line , and even considers comments as code I guess

    ../src/RAM_test/1.2_release/RAM/StartBothTestAssembly.asm:2: Error: bad instruction `copyright [2016] Renesas Electronics Corporation and/or its licensors. All Rights Reserved.'
    ../src/RAM_test/1.2_release/RAM/StartBothTestAssembly.asm:3: Error: bad instruction `the contents of this file(the "contents")are proprietary and confidential to Renesas Electronics Corporation and/or its licensors("Renesas")and subject to statutory and contractual protections.'

    etc