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.

TMS320F28379D: f2837xd diagnostic library error injection

Part Number: TMS320F28379D

hi,

I'm using the diagnostic libary in order to test memory.  I have provided a code snippet below. Unfortunately when I inject an error the status returned is still 0. and ideas? thanks

            uint32_t section_length_end;
            uint16_t section_test_size = SELF_TEST_RAM_SIZE;

#if 0
            STA_User_marchErrorObj.address    = (uint32_t)0x008000;
            STA_User_marchErrorObj.ramSection = MEMCFG_SECT_LS0;
            STA_User_marchErrorObj.xorMask    = 0x0000001;
            STA_User_marchErrorObj.testMode   = MEMCFG_TEST_FUNCTIONAL;

            STA_User_marchErrorHandle = &STA_User_marchErrorObj;

            STL_March_injectError(STA_User_marchErrorHandle);
#endif

            ram_test_address = self_test_memory[section_count].ram_section_address + section_offset;

            // calculate current section end for a potential remainder
            section_length_end = section_offset + SELF_TEST_RAM_SIZE;

            if (section_length_end > self_test_memory[section_count].section_length)
            {
                section_test_size = self_test_memory[section_count].section_length - section_offset;
            }

            _STL_March_testRAMCopy(STL_MARCH_PATTERN_ONE,
                                   ram_test_address,
                                   section_test_size,
                                   (uint32_t)test_array);

            return_value = STL_March_checkErrorStatus();