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.

C6727 ROM DSPLIB problem



hI,

I am using "DSPF_sp_maxval" library function(ROM version) in my application code.

It is repeatedly observed that DSP is hanging after sometime in this API and when DSP hangs core registers are getting corrupted.

 

I have already taken care of the requirements specified in Library reference guide.

Recently I came to know about the bug in  DSPF_sp_maxval from this forum and just to confirm, please let me know whether following additional things are required:

1. Whether array length passed need to multiple of 6?

2. GIE bit is explicitely disabled before calling the API and restored after exiting. Is this required? Since API internally does that.

3. I am using other 3 API's DSPF_sp_blk_move, DSPF_sp_vecsum_sq and DSPF_sp_dotprod. Above requirements needed for these API's also?

 

Thanks,

Balachandra

 

 

  • Follow all requirements given in the documentation.  Additionally for the functions I mention in this post you should disable/restore interrupts around the function call.

  • Thanks Brad,

    It's working fine with the additional changes.

    Thanks for your help.

    regards,

    Balachandra

     

     

  • I just wanted to note that the DSPF_sp_maxval and DSPF_sp_blk_move functions are significantly improved in the new C674x DSPLIB.  Additionally, the DSPF_sp_dotprod and DSPF_sp_vecsum_sq functions have had their requirements eased in the new release.  All four of these functions have also been made fully interruptible (not just interrupt tolerant).  The C674x DSPLIB installation includes an XLS file (in the "docs" folder) that lists these and other improvements in the new release.

    Unfortunately, this won't be much help without a C674x device.  I'm glad that Brad's suggestions solved your immediate problem. :)