qq_40894981 2021-03-09 14:52 采纳率: 0%
浏览 276

dsp进行复数fft运算出现NaN怎么回事?如何解决

ccs环境下用DSPF-sp_fftSPxSP()函数进行复数FFT运算但是结果是NaN。请问如何解决?

  • 写回答

1条回答 默认 最新

  • Brentbin 2021-03-09 17:30
    关注

    https://e2e.ti.com/support/processors/f/processors-forum/281205/nan-output-with-fft-using-dsplib

    To start with, there is a demonstration app. (DSPF_sp_ifftSPxSP_d.c) for DSPF_sp_ifftSPxSP kernel in the DSP library package which is a complex inverse FFT with mixed radix driver code tests the kernel and reports the benchmark results of CPU cycles (Success/Failure). If you run this project first, you will be able to validate the usage of this kernel in your scenario which is in the installation path as below:
    
    ~\dsplib_c674x_3_1_0_0\packages\ti\dsplib\src\DSPF_sp_ifftSPxSP\c674\DSPF_sp_ifftSPxSP_674LE_LE_COFF
    
    Next, please refer the below wiki for the C674x DSPLIB Known issues for DSPF_sp_ifftSPxSP kernel:
    
    http://processors.wiki.ti.com/index.php/C674x_DSPLIB_Known_Issues#DSPF_sp_fftSPxSP_and_DSPF_sp_ifftSPxSP_Functions_Overwrite_the_Input_Buffer
    
    Also, please refer the below E2E thread for the similar usecase as yours which would give you an idea on the impact of DSPLINK intervention with the dsplib but it is for OMAP3530 EVM and
    
    http://e2e.ti.com/support/embedded/bios/f/355/p/150484/559542.aspx#559542
    
    As per your usecase, there could be many possibilities but please make sure that the DSP and ARM are exchanging same input and output data through DSPLINK. You can exchange checksum data on both ARM & DSP to ensure the same.
    
    1. Probem could be with the usage of dsplib function for IFFT
    
    2. It could be the data mismatch between ARM and DSP through IPC
    
    3. Issue could be with the array/buffer size between ARM and DSP through DSPLINK
    
    4. might be a scaling range issue
    
    Please also refer the below wiki to get an idea on how to debug the dsp side of a dsplink application,
    
    http://processors.wiki.ti.com/index.php/Debugging_the_DSP_side_of_a_DSPLink_application_on_OMAP_using_CCS#Modify_the_DSPLink_message_example
    
    I also recommend you to refer the DSPLINK API documentation which would be in the dsplink source installation path as below:
    
    ~/dsplink_1_xx_xx_xx/dsplink/doc/source_documentation/html/index.html
    评论

报告相同问题?

悬赏问题

  • ¥15 安装svn网络有问题怎么办
  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献