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.

STC test inside a RTOS task?

Hi

I'm trying to solve this issue but i can reproduce the problem...(running STC in a task)

Just want to ask if somebody has actually implemented the STC with an Kernel(RTX, RTOS...)?

Regards

Burim

  • Hi Burim,

    Typically STC is run as part of iitialization since CPU will be not be available for application till the STC test is completed.

    But this does not restrict user from using STC during application, but user has to take care of the timings incase used in RTOS.

    Could you pls mention the exact issues you faced, I will forward it to our system's expert to help you better.

    Best Regards
    Prathap

     

  • Hi Prathap

    Im trying to integrate the STC into my app. In this context i am using the FreeRTOS kernel, 

    and during the run time i am trying to Run the STC test with different intervals

    The problem that i am faced is that if i am running in debug mode, everything is OK, the STC test is running periodically without problems

    But if i disconnect and start the board again the STC runs one time and throws an ESM error....

    maybe it is an timing incase but according to the TRM with 32 intervals with HCLK = 160 Mhz and STCCLK = 53,3 Mhz  it should 

    have an running time of 0.926 msec.

    And if i run just 16 intervals it should be about 0.5 msec......

    Regards 

    Burim

     

  • Burim,

    Do you have the details of ESM error? ESM module status register dump would be really helpful.

    Best Regards
    Prathap

  • Hi

    Sorry for the Delay. Here is a dump of my ESM register

    Regards Burim

     

  • Hi,

    I think it is a timing issue with the FreeRTOS. 

    If i run the STC procedure without RTOS kernel, it works perfectly in debug and normal mode

    If i run the STC procedure with RTOS it runs good in Debug mode but in normal mode it throws ESM error and hangsup

    Maybe somebody can give me a tip how to handle this

    Regards 

    Burim

  • Hi 

    In your previous posting you say that if the STC is going to run application i should care about  the timings incase i use RTOS?

    Can you explain a bit what do you mean with that specifically

    Regards

    Burim

  • Hi Burim,

    If STC is run in slices ( This will be the case if run using RTOS because covering all Intervals at one shot will take more time) the user software should take care of the time taken for Selected interval and also the Processor state backup and receovery before and after the test. This totally depends on the type of application and the resources(registers / states) used by the application.

    Best Regards
    Prathap