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,
In reply to Renesas Karol:
In reply to Laser:
I tryied to perform a RAM test at the startup, but it always fails. In my main_thread_entry function, I call:
uint32_t uiRamTest_startAddr = 0x0000;
uint32_t uiRamTest_endAddr =0x1000;
bRamTestResult = RamTest_March_C(uiRamTest_startAddr, uiRamTest_endAddr, NULL);
if(bRamTestResult == false)
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?
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?
In reply to erik:
In reply to adboc:
In reply to gnk:
In reply to WarrenM: