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.

TMS320F28374D: Safety lib code example confirmation not using TIrtos

Part Number: TMS320F28374D


Hi everybody , 

for safety you need to run some tests .  I m NOT using TIrtos .

in code for the stack tests you can see code hereunder and you can see it is referencing ( in the comments ) to TIrtos :

could you confimr me I can use this code in my project , where there is NO TIrtos ?

 

        case STA_SP_TEST:

        {

            STA_User_spObj.startAddress = (uint32_t)_symval(&_stack);

            STA_User_spObj.endAddress = (uint32_t)_symval(&_STACK_END);

            STA_User_spObj.watchpoint = STL_SP_WP0;

            STA_User_spHandle = &STA_User_spObj;

 

            //

            // Set up watchpoint register and enable RTOS interrupt

            //

            uint16_t returnVal = STL_SP_configSP(STA_User_spHandle);

 

            //

            // Disable WP0, which would result in the RTOS interrupt to not be

            // generated on a write to a monitored address

            //

            if(STA_Tests_injectError)

            {

                STL_SP_disableWatchpoint(STA_User_spHandle);

            }

regards

Carlo

  • Carlo,

    I am confused by your question. It is not very clear.

    We designed this safety mechanism to use the TI RTOS, and if you are not using that interrupt in your system, then yes of course you can use this safety mechanism. That is the point.

    sal
  • HI Sal ,
    sorry if I confused you . My point is I have NO tirtos in my SW , and willing to use this example for stack safety check .
    this example seems ( by the comments ) to use TIrtos so I cannot use it : am I right ?
    whcih sw should I use for this test in a design not using TIRTOS ?
    thank you
    regards
    Carlo
  • Carlo,

    You can use the software we provided and demonstrated above.

    The software uses the interrupt designated for RTOS, and since you are not using the RTOS interrupt in our system, then you are perfectly fine to use it.

    Please go ahead and use the software.

    For more information, please see the STL user guide and STA user guide.

    sal