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.

MCU-PLUS-SDK-AM273X: Is there any specialty in the HWA_REAL_FFT sample project setting?

Part Number: MCU-PLUS-SDK-AM273X
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hello Support team,

My SPI code working well in the mibspi_loopback sample project. However, when I integrate that code into the hwa_real_fft sample project, it doesn't work at all.

Is there anything special in the hwa_real_fft project? I notice that it has EDMA setting in it. Does it affect the SPI setting?

Any advice and suggestion is greatly appreciated.

If you need more information from my side, please let me know.

Best regards,

Lin

  • Hi Lin,

    Your SPI project has its own syscfg file and hwa_real_fft project does too. You will need to not only combine the code, but also the two syscfg files.

    Best regards,

    Ming

  • Hi Ming,

    Thanks for your response on weekend.

    Yes, my way to combine the syscfg is that in the sample hwa_real_fft's example.syscfg file I added the SPI and GPIO setting which I did in the mibspi_loopback sample example.syscfg file. Is there any other setting I need to add to the hwa_real_fft's example.syscfg?

    One issue now is that after I did that and built the project, I can't fine the created SysConfig files in the hwa_real_fft project as I did in the mibspi_loopback project.

    Is there anything wrong or I missed?

    Appreciate your help.

    Best regards,

    Lin

  • Hi Lin,

    If you cannot find the files generated by the syscfg, then it means the new example.syscfg file has errors. You should receive the build error.

    Can you share the example.syscfg file? Or better share the whole CCS project?

    Best regards,

    Ming

  • Hi Ming,

    When I try to share my example.syscfg file, I noticed that there is no that file in the Explorer as shown before. However, it indeed show in the project in CCS.

    Is that correct?

    I will zip my project and send to you in next message.

    Best regards,

    Lin

  • Hi Ming,

    Please check the zipped project folder of the hwa_real_fft.

    If you can't open it or it's not a correct way to share the project, please let me now.

    hwa_real_fft_am273x-evm_r5fss0-0_nortos_ti-arm-clang.zip

    Best regards,

    Lin

  • Hi Ming,

    More info and history to share with you.

    At first I imported C66x core hwa_real_fft sample project and did modification in the hwa_real_fft.c file (such as print out the FFT magnitude). Later I realized for our further ADC test, I have to use MSS_SPIB which wired to J7 of the EVM, but SPI in C66x can't wire to J7. So I imported the R5F core hwa_real_fft sample project again and worked on it. When I built the project I noticed that the hwa_real_fft.c file is shared in both C66x and R5F cores (as all of my modification are in the file from R5F side).

    Is that correct for the hwa_real_fft and all the MCU+ SDK sample projects?

    Best regards,

    Lin

  • HI Lin,

    In your zip file, I cannot find the example.syscfg file:

    Without the syscfg file, the syscfg cannot generate those files.

    Best regards,

    Ming

  • Is that correct for the hwa_real_fft and all the MCU+ SDK sample projects?

    Yes. The application code is the same, but the syscfg file is different.

  • Hi Ming,

    I don't know what happened, but I will delete both hwa_real_fft in R5F and C66x cores and re-import it to the R5F core.

    I will get back to you after I verify that. Or if you have better ideas or suggestion, please let me know.

    Thanks and best regards,

    Lin

  • Thanks for your confirmation.

  • Hi Ming,

    More questions about the sample project hwa_real_fft's example.syscfg file. Please check the following screenshots.

      

    In the icons of the example.syscfg files of hwa_real_fft sample projects, there are blue arrow at the bottom right corners. But the other sample projects don't have that. 

    Does that mean the example.syscfg file of hwa_real_fft has a alien or a link to somewhere else? So we can't find it in its own project folder. Or could you confirm that and explain it?

    That's why I gave the title of this thread.

    Best regards,

    Lin

  • Hi Ming,

    More info for you.

    After deleting all the hwa_real_fft sample projects in my CCS and re-importing one in R5F core, I get the same results: no example.syscfg in the project folder and there are blue arrows in the icons of example.syscfg (and other .c files).

    Looking forward to your confirmation and solution.

    Best regards,

    Lin

  • Hi Lin,

    The example.syscfg with blue arrow under it is the link pointing to the example.syscfg file in the original AM273x MCU+ SDK 09.02.00.60: C:\ti\mcu_plus_sdk_am273x_09_02_00_60\examples\drivers\hwa\hwa_real_fft\am273x-evm\c66ss0_nortos.

    The ones without the blue arrow are the copy of the original example.syscfg files to the workspace where your CCS projects were imported to.

    Best regards,

    Ming

  • Hi Ming,

    Thanks for your pointing that out. 

    However, from the importing procedure, the hwa_real_fft is same as the other sample projects as you can see from following screenshots.

       

    In both projects, the Copy projects into workspace box is checked by default. Then why after pressing the Finish button, will hwa_real_fft project LINK those files, but the other projects COPY the files? 

    I still think hwa_real_fft has some specialty, but I don't know how it come.

    If you think that link or copy files setting doesn't affect the performance, then later I will share my modified example.syscfg file and modified hwa_real_fft.c file with you, as now we know where to find them.

    Best regards,

    Lin

  • Hi Lin,

    In the example.projectspec file, each file has two options: either "link" or "copy". It is up to the creator of the *.projectspec files. The only difference between the "link" and "copy" is that whether the file will be linked or copied to the workspace. It will not affect the performance whatsoever. Just send me your modified example.syscfg file.

    Best regards,

    Ming 

  • Hi Ming,

    Thanks for your explanation. By checking the example.projectspec file of hwa_real_fft and the other projects, now I understand root cause of the specialty of the hwa_real_fft.

    After deleting the previous hwa_real_fft project, re-importing it and integrate ADC SPI code to the R5F core  now the ADC SPI + HWA FFT code works well in the hwa_real_fft project. For completeness, I share my latest example.syscfg and hwa_real_fft.c files with you. Please check them out.

    3731.example.zip  hwa_real_fft.zip

    Now I would like to know how can I add a Window function or log magnitude function with HWA2.0 in the hwa_real_fft sample project.

    Should we continue in this thread or create another new one?

    Appreciate your help and support especially in the weekend.

    Best regards,

    Lin

  • Hi Ming,

    Before the thread closed, may I ask a HWA configuration question.

    In the TRM, it said that "Each parameter set includes various configuration details such as the accelerator mode of operation (FFT, Log2, and so on), the source memory address, number of samples, the destination memory address, input formatting, output formatting, trigger mode for controlling the start of computations to ensure proper handshake with the DMA, and so on."

    In the sample hwa_real_fft project, where / in which file can I find the parameter set configuration of above contents?

    Thanks and best regards,

    Lin

  • Now I would like to know how can I add a Window function or log magnitude function with HWA2.0 in the hwa_real_fft sample project.

    Should we continue in this thread or create another new one?

    Yes. It will be better to start a new thread.

  • In the sample hwa_real_fft project, where / in which file can I find the parameter set configuration of above contents?

    It is in the function: HWAFFT_init in hwa_fft.c.

  • Hi Ming,

    I checked that HWAFFT_init( ) function, but it contains most of the EDMA config and I didn't see the parameterRegister and commonRegister config.

    Could you specify the lines in the function?

    Best regards,

    Lin

  • Hi Lin,

    The HWA initialization is split between the HWA_open() in C:\ti\mcu_plus_sdk_am273x_09_02_00_60\source\drivers\hwa\v0\hwa.c and HWAFFT_init( )

    Best regards,

    Ming

  • Hi Ming,

    Thanks for your information. I never checked the HWA_open() before. I will do it.

    Best regards,

    Lin

  • Hi Ming,

    May I use this thread to ask you help for the AD7389-4 chipset issue? Right now I can NOT read out a 100 KHz sine wave signa in the analog channel 1.

    I know it's AD's chipset, however, could you help me to review my TI's MUC+ SDK based SPI code to read back the continuous data conversion?

    Appreciate your help. I'm blocked by this issue for a week and caused the project delayed. So please help me on it.

    Best regards,

    Lin

  • Hi Lin,

    Please do not use this thread for AD7389-4 related issue. Please create a new e2e thread for it.

    Aslo, please close this thread if you think your question has been resolved.

    Best regards,

    Ming

  • Hi Ming,

    Thank you very much for your help and support.

    Best regards,

    Lin