<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Test coverage in example code for safety library in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Test-coverage-in-example-code-for-safety-library/m-p/957457#M143047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear software developers at NXP, dear Jozef Sedlak and Pavel Sustek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I evaluated the example code which is delivered in the file&amp;nbsp;&lt;A class="link-titled" href="https://www.nxp.com/downloads/en/libraries/IEC60730B_CM4_CM7_3.0.exe" title="https://www.nxp.com/downloads/en/libraries/IEC60730B_CM4_CM7_3.0.exe"&gt;https://www.nxp.com/downloads/en/libraries/IEC60730B_CM4_CM7_3.0.exe&lt;/A&gt;&amp;nbsp;from 2019-08-06.&lt;/P&gt;&lt;P&gt;I compiled it with IAR Embedded Workbench for ARM V8.40.1 and tried it out on the evaluation board IMXRT1050-EVKB with jumpers in their default settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Analog Input/Output Test&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;a) Does the AIO test covers analog inputs and outputs?&lt;BR /&gt;The documentation says "The Analog IO test procedure performs the plausibility check of the digital IO interface of the processor. " This seems to be wrong.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;b) I noticed that the&amp;nbsp;function&amp;nbsp;SafetyAnalogTest is not called at all and IEC60730B_aio_test_result in the global structure g_sSafetyCommon is not set. Is this a mistake?!&lt;/P&gt;&lt;P&gt;2. Digital Inputs&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;I noticed that the variable g_sSafetyCommon.IEC60730B_dio_input_test_result is not set.&lt;BR /&gt;Is this a mistake?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Flash Memory Test (invariable memory test)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;The memory range which is covered by the CRC spans from&amp;nbsp;FLASH_TEST_START_ADDRESS =&amp;nbsp;0x60002410 to&amp;nbsp;FLASH_TEST_END_ADDRESS = 0x60005000. So, the vector table which starts at&amp;nbsp;0x60002000 is not tested. Also, depending on the size of the binary output the range may cover or may not cover the complete code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;Can you confirm this or did I miss anything?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4. CPU Clock Frequency&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;If I see it correctly, the variable g_sSafetyCommon.ui32CpuClkFreq is not set.&amp;nbsp;Is this done intentionally?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN&gt;Thank you for any further information in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN&gt;michaeL&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Sep 2019 10:05:30 GMT</pubDate>
    <dc:creator>scotty</dc:creator>
    <dc:date>2019-09-23T10:05:30Z</dc:date>
    <item>
      <title>Test coverage in example code for safety library</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Test-coverage-in-example-code-for-safety-library/m-p/957457#M143047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear software developers at NXP, dear Jozef Sedlak and Pavel Sustek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I evaluated the example code which is delivered in the file&amp;nbsp;&lt;A class="link-titled" href="https://www.nxp.com/downloads/en/libraries/IEC60730B_CM4_CM7_3.0.exe" title="https://www.nxp.com/downloads/en/libraries/IEC60730B_CM4_CM7_3.0.exe"&gt;https://www.nxp.com/downloads/en/libraries/IEC60730B_CM4_CM7_3.0.exe&lt;/A&gt;&amp;nbsp;from 2019-08-06.&lt;/P&gt;&lt;P&gt;I compiled it with IAR Embedded Workbench for ARM V8.40.1 and tried it out on the evaluation board IMXRT1050-EVKB with jumpers in their default settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Analog Input/Output Test&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;a) Does the AIO test covers analog inputs and outputs?&lt;BR /&gt;The documentation says "The Analog IO test procedure performs the plausibility check of the digital IO interface of the processor. " This seems to be wrong.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;b) I noticed that the&amp;nbsp;function&amp;nbsp;SafetyAnalogTest is not called at all and IEC60730B_aio_test_result in the global structure g_sSafetyCommon is not set. Is this a mistake?!&lt;/P&gt;&lt;P&gt;2. Digital Inputs&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;I noticed that the variable g_sSafetyCommon.IEC60730B_dio_input_test_result is not set.&lt;BR /&gt;Is this a mistake?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Flash Memory Test (invariable memory test)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;The memory range which is covered by the CRC spans from&amp;nbsp;FLASH_TEST_START_ADDRESS =&amp;nbsp;0x60002410 to&amp;nbsp;FLASH_TEST_END_ADDRESS = 0x60005000. So, the vector table which starts at&amp;nbsp;0x60002000 is not tested. Also, depending on the size of the binary output the range may cover or may not cover the complete code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;Can you confirm this or did I miss anything?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4. CPU Clock Frequency&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN&gt;If I see it correctly, the variable g_sSafetyCommon.ui32CpuClkFreq is not set.&amp;nbsp;Is this done intentionally?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN&gt;Thank you for any further information in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN&gt;michaeL&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2019 10:05:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Test-coverage-in-example-code-for-safety-library/m-p/957457#M143047</guid>
      <dc:creator>scotty</dc:creator>
      <dc:date>2019-09-23T10:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Test coverage in example code for safety library</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Test-coverage-in-example-code-for-safety-library/m-p/957458#M143048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;/Hi Scotty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you check the example code from the SDK software package? you can download it from the builder page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/" title="https://mcuxpresso.nxp.com/en/"&gt;Welcome | MCUXpresso SDK Builder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For point 2, this code does perform a digital input test on it. For 3, yes, you are correct, the &lt;SPAN&gt;code cover only from FLASH_TEST_START_ADDRESS 0x60002410 to FLASH_TEST_END_ADDRESS 0x60005000. For point 4, there are some variables that in some cases it does not need to use them, so it is not set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 20:17:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Test-coverage-in-example-code-for-safety-library/m-p/957458#M143048</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2019-10-02T20:17:40Z</dc:date>
    </item>
  </channel>
</rss>

