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.

RTOS/TMS320C6746: SYS_BIOS_6_46

Part Number: TMS320C6746

Tool/software: TI-RTOS

While executing memset function in sys bios , when click on => step into , in memset function at the execution of "amemd8 "cursor is not returning and not able to do execute the next code .

http://processors.wiki.ti.com/index.php/C6000_Intrinsics_and_Type_Double - amemd8 is deprecated function which I replaced in standard lib by mem8 still its not executing .

memset((void *) &xyz , 0, sizeof( ABC ));

for reference = > this xyz is in DDR and code is in IRAM .

 

It will be good if you let us know the reason "why this memset is not executing " and suggest the proper answer

Manisha

 

  • I've notified the rtos team.
  • Manisha Wadkar said:
    While executing memset function in sys bios , when click on => step into , in memset function at the execution of "amemd8 "cursor is not returning and not able to do execute the next code .

    If you assembly step, what happens?

    Manisha Wadkar said:
    http://processors.wiki.ti.com/index.php/C6000_Intrinsics_and_Type_Double - amemd8 is deprecated function which I replaced in standard lib by mem8 still its not executing .

    I presume you made a typo.  _amemd8 should be replaced by _amem8, not mem8.  But even if you did that correctly, it won't make any difference in this case.  The difference between those two intrinsics matters only when you attempt to execute this code on a host system (like your laptop), and you use the host intrinsics package to provide a hosted implementation of intrinsics like _amem8.

    Thanks and regards,

    -George

  • Hello George

    Thank you for your reply. basic query is Like cos and sin functions also log10 function used in the code .currently code hangs at log10 function .

    Are there any setting in SYS bios 6.46 .because all these functions worked on DSP bios as is.

    for eg for Log10 function , code from ti\ccsv6\tools\compiler\ti-cgt-c6000_8.1.1\lib\src\log10.c

    below code executes and then in this file log10f_i.h code hangs .
    _CODE_ACCESS double log10(double x)
    {
    #include "log10f_i.h"
    }

    please suggest .

    Thanks
    Manisha
  • For further discussion of your questions, please follow this forum thread.

    Thanks and regards,

    -George

  • Hello George

    When I execute the memset function then at particular point the memory corruption occurs . I changed memset function to "for loop" still the problem persists. Memory corruption occurs .Array is of size [24][9][17] so I observed the memory corruption at [16][7][i = 4] first I observed it at i = 4 but if I debug through assembly step then it might be i = 17 . so is it related to something else like I checked the timestamp module in BIOS . I have debugged this but not getting the reason why memory is being corrupted means it filles zero for some other functions . your help on this will be appreciated.
    thanks
    Manisha
  • Please respond to the questions about your situation in this related thread.

    Thanks and regards,

    -George