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.

Compiler/TMS320F28031: The position of memcpy function

Part Number: TMS320F28031
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: TI C/C++ Compiler

In DSP2803x_usDelay.asm,there is a comment saying the memcpy functions must be complied before the InitSysCtrl().

However, for most of the examples in ControlSuite, the memcpy functions is behind the InitSysCtrl(), and no error happens.

How to explain this? Thank you guys so much!

  • Hello,
    I am writing to let you know that a C2000 team member has been assigned to this post. We will try our best to address your query. But since one of our sites is affected by bad weather, there may be a delay in response.

    Regards
    Baskaran
  • Wang,

    The note above DSP28x_usDelay function is right. If you want to make sure DELAY_US function provides accurate delay you have to execute this function from 0-waitstate RAM. In the example, DELAY_US function which is called in InitSysCtrl() function execute DSP28x_usDelay function from flash (which is not 0-wait state. So, the delay function executed will not be accurate.

    Regards,
    Manoj