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.

TMS570LC4357: Internal RAM Test Execution

Part Number: TMS570LC4357

Hi Team,

For our application based on TMS570LC4357 processor, As per our requirement we are trying to perform the destructive test(without using PBIST) for the complete Internal 512KB RAM and configure the test result in the internal EEPROM. As per our implementation, we tried to perform the internal RAM test just after initializing the RAM and in that case the build is running properly, but as this test is performed before PLL, we are not able to log the result in the EEPROM as PLL is not setup and internal Flash is not initialized; However, when we tried to perform the internal RAM test after PLL where Flash is also initialized, we are seeing that the STC self test is not performing the system reset and consequently the build does not come up.

Here, To accomplish this we would like to understand the better approach to perform this test:
1. Firstly, where exactly we have to run this test on internal RAM with respect to PLL. Are we supposed to run this before setting up the PLL or after configuring it?
2. Is there any relation between the STC self test which is not allowed to reset when the RAM test is performed after PLL?
3. What could be the better approach to log the test results in EEPROM, if we are expected to perform the RAM test before PLL?

Request to help us in understanding this better, to accomplish this requirement.

Regards,
Shivam

  • Hi Shivam,

    While power-on reset is asserted (low), the oscillator and internal low power oscillator (LPO) are enabled and start-up by default. After power-on reset is released to a high level, the clock detect circuit (CLKDET) begins to monitor the oscillator. If the oscillator is within a valid range, the oscillator becomes the default clock for the device as it exits reset; if the oscillator is not within a valid range, the clock detect selects the internal high-frequency low power oscillator (HF LPO) as the default clock for the device.

    1. Firstly, where exactly we have to run this test on internal RAM with respect to PLL. Are we supposed to run this before setting up the PLL or after configuring it?

    If the OSC in your system is 16MHz, the HCLK is 16MHz too by default. It is ok to run RAM test and program data to FEE before PLL is enabled. I suggest to perform the RAM test, CPU selftest and FEE operation after system is initialized (flash is set up, PLL is enabled and configured, peripherals are enabled, etc). 

    2. Is there any relation between the STC self test which is not allowed to reset when the RAM test is performed after PLL?

    The default value of the CPU LBIST clock prescaler is’ divide-by-1’ (STCCLKDIV register). If PLL is not enabled, the STC execution speed is GCLK=16MHz (assume OSC=16MHz). It is fine to perform STC sleftest before and after PLL is enabled. 

    Normally the STC selftest is done before RAM is tested such as PBIST. There is also no problem to do STC selftest after RAM is tested. 

    3. What could be the better approach to log the test results in EEPROM, if we are expected to perform the RAM test before PLL?

    What is size of the test results? Why do you want to do the test and log the results to EEPROM before PLL is enabled? 

  • Thanks Wang for your response.

    Basically the size for test result is 32-bit word, indicating whether the Internal RAM test is passed or failed; However there is not any specific requirement to perform and log the result in EEPROM before PLL, but as we are facing issues mentioned earlier that, when we execute the RAM test after PLL and everything is setup, specifically the STC self test which performs the Reset, is not happening and build is not coming up; That's why we wanted to understand the possible ways to accomplish this.

  • Hi Shivam,

    Please refer to device initialization procedure:

    https://www.ti.com/lit/an/spna106d/spna106d.pdf?ts=1644589015464

    I suggest to run the RAM destruction test (using either PBIST or not) after device is initialized and CPU selftest has been performed. 

    In the app note, the RAM test is at #25.