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.

CC1352P: audio echo example problem

Part Number: CC1352P
Other Parts Discussed in Thread: CC3200AUDBOOST, , SYSCONFIG

Tool/software:

Hi,

I can run the audio plugin example program audiohal_echo in the CCS v12.8.1.00005.
Using the "audiohal_echo" program in the CC1352P1 with AUDBOOST board,
I can hear music with a little noise.
But I can NOT hear any sound using "i2secho" program in the same board.

PLease let me know how I can hear music using i2secho example program.

Thank you very much.

JM KIM

  • Hi, Arthur,

    Thank you for your answer.

    I've already read that thread deeply.

    I think the above problem is NOT a "debug" problem.

    With the SAME hardware and the SAME IDE, two programs have different results.

    Your i2secho example program may have a bug.

    So I would like to get an example program "i2secho" that works well.

    Thank you very much.

    Best regards,

    JaeMyoung KIM

  • Hi Jae,

    So if I understand, you are not even seeing the input audio data in the program's buffer?

    If that is the case, I will have to reproduce the issue.

    Regards,

    Arthur

  • Hi Arthur R,

    Ihave recorded two running examples.

    audiohal_echo_CC1352P1_LAUNCHXL_tirtos_ccs

    i2secho_CC1352P1_LAUNCHXL_tirtos7_gcc

    In the audiohal_echo example, IOID_23 (MCLK)* is connected to TP13 (MCLK). When I play the music, the signal comes out in scope.
    But in the i2secho example, there no mention about MCLK. I have connected two pins and play the music, the signal DOES NOT come out.

    Thanks and Best regards,

    JM KIM.

  • Hi JaeMyoung,

    Thank you for the video. I have just tested with i2secho on the latest SDK version, with a CC1352P, and the example works for me.

    I did have to follow the following instructions to the letter: https://dev.ti.com/tirex/explore/content/simplelink_audio_plugin_3_30_00_06/docs/Quick_Start_Guide.html

    Regards,

    Arthur

  • Hi  Arthur,

    I have tried your suggest in the ccs 12.8.1 and the latest ccs theia.

    I could NOT hear the sound. 

    Even the connection diagram you sent is wrong.

    This is a right conn diagram.

    Have you actually tested it? If so, please send me some videos about it.

    Thanks and best regards,

    JM KIM

  • Hi JaeMyoung,

    I have of course tested, I would have never written this if not. By the way, my diagram is indeed wrong, the purple wire should have been connected to DIO16 instead, as such:


    I apologize. My board was wired the correct way, which is why the test worked..

    Anyway, here is the video you have asked for, where the Android phone is connected to the CC3200AUDBOOST line-in, and the line-out is connected to the computer microphone input which is recording the audio with Audacity:

    And here is the audio file that I have recorded:



    Regards,

    Arthur

  • Hi  Arthur,

    Thank you for your video and diagram.

    I have tested i2secho programs again. 

    I don't know why it won't work, so I guess I'll have to give up.

    Please let me know if there a clue such as a jumpering, version, etc.

    Test results:

    - CCS 12.8.1

    audiohal_echo_CC1352P1_LAUNCHXL_tirtos_ccs   OK
    i2secho_CC1352P1_LAUNCHXL_tirtos7_gcc            NOK
    i2secho_LP_CC1352P7_1_tirtos7_ticlang                  NOK

    - CCS Theia 1.5.1

    i2secho_CC1352P1_LAUNCHXL_tirtos7_ticlang       NOK
    i2secho_LP_CC1352P7_1_tirtos7_ticlang                  NOK

    My boards:

    Thanks and best regards,

    JM KIM

  • Hi JaeMyoung,

    Do you confirm that the project has not been modified in any way? I am especially interested about those lines:

        /* Configure Codec */
        status = AudioCodec_config(AudioCodec_TI_3254,
                                   AudioCodec_16_BIT,
                                   SAMPLE_RATE,
                                   AudioCodec_STEREO,
                                   AudioCodec_SPEAKER_HP,
                                   AudioCodec_MIC_LINE_IN);

    As this would work for your setup (I have the same setup as you)

    Regards,

    Arthur

  • Hi Arthur,

    I ran it as is, without changing the original source at all.

    Thanks and best regards,

    JM KIM

  • Hi JaeMyoung,

    Here is a logic capture that you can open with the Logic 2 software. It was captured from a mono 8 KHz onboard microphone recording.
    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/156/8KHzI2s.sal

    If you probe the logic signals, do you see something similar?

    Regards,

    Arthur

  • Hi Arthur,

    We don't have Logic 2 Software. So we tested with 54855A Infiniium Oscilloscope.

    Test environment is CCS 12.8.1 IDE and
    example programs are audiohal_echo_CC1352P1_LAUNCHXL_tirtos_ccs and
    i2secho_CC1352P1_LAUNCHXL_tirtos7_gcc.

    The results are as follows:

                                                         audiohal_echo                         i2secho
    DIN: P3.3 and P3.9                      signal out                                 no signal
    DOUT: P3.4 and P3.10                 signal out                                 no signal
    BCLK: P3.5 and P3.8                   signal out                                 signal out
    FSYNC/WCLK: P4.9 and P3.7     signal out                                 signal out
    IOID_23 (MCLK)                          signal out                                 no signal*

    For our board to work properly, we need to send an MCLK signal from the MCU to the audio codec,
    but i2secho doesn't output the MCLK signal from MCU at all.


    If possible, please send me the i2secho source code and the IDE version you are running.
    I will try to reproduce it here.

    Thanks and best regards,

    JM KIM

  • Hi,

    Thank you for the information. I have forwarded you a project by direct message. I am using CCS 12.8.1.

    Regards,

    Arthur

  • Hi Arthur,

    As I replied to your direct message, the source you sent is also the same as before.

    I think that the data input/output is not working
    because the i2secho program does not output MCLK.

    Please check if the i2secho program you sent outputs MCLK, and if it outputs MLCK,
    I think you sent a non-working i2secho program.

    If I force MCLK externally, data input/output is working.
    I would appreciate it if you could check again.

    Thanks and best regards,

    JM KIM

  • Hi JaeMyoung,

    I retried again with CCS, with the i2secho (GCC compiler) example and a different CC3200AUDBOOST board.

    with that GCC compiler version:

    And it still functions out of the box without any modification, using the hardware set-up that I have shared with you (which is the same one as yours, according to the picture that you have shared.

    Are you using any breakpoints except the main one when starting your debug session?

    Regards,

    Arthur

  • Hi Arthur,

    You are misunderstanding my previous reply.

    My board(CC1352P1+AUDBOOST with your jumper setting) works well when I run audiohal_echo_CC1352P1_LAUNCHXL_tirtos_ccs.

    But when I change audiohal_echo to i2secho_CC1352P1_LAUNCHXL_tirtos7, my board DOES NOT work.

    The reason is that when I run i2secho program, MCLK DOES NOT come out.

    So if your example  i2secho is working well, check the MCLK signal.

    If MCLK is came out about 12 MHz, you may be sent wrong i2secho source.

    Another question:

    Are you try to run audiohal_echo and  i2secho respectively in your same board?

    If you try, please let me know the results.

    Thanks and best regards,

    JM KIM

  • Hi JaeMyoung,

    This is understood. During that thread, I have only ever tested and talked about the i2scho example, because this is the project that is not working on your side.

    Again, i2secho should work out of the box. Please refer to this document:https://dev.ti.com/tirex/explore/node?node=A__AE2iNaqO7maa4fbXjj4UBg__com.ti.SIMPLELINK_AUDIO_PLUGIN__RW99gST__LATEST


    Regards,

    Arthur

  • Hi Arthur,

    I'm very sorry for the late response.
    I still don't understand.
    I tried running it on the same IDE and the same HW,
    but audiohal_echo works but i2secho doesn't.
    Please refer to the clip running in the same IDE.

    audiohal_echo

     

    i2secho

    I would like to know the reason why.

    Thanks and best regards,

    JM KIM

  • Hi Arthur,

    Since I have not received any response to my reply, I would like to ask you the following.

    Please capture the MCLK signal with Logic 2 software and send it to me.

    Thanks and best regards,


    JM KIM

  • Hi JaeMyoung,

    I have some more questions

    • Is the i2secho program working on your Launchpad boards? This example does not need the MCLK/CCLK clock
    • Is the i2secho failing on your custom board, as this message seems to imply? What codec are you using on your custom board?

      In which case, there is a way to output MCLK/CCLK in SysConfig:

      and output it to DIO23:
       . It does need some more configuration.

    Regards,

    Arthur

  • Hi Arthur,

    Thank you for your support.

    I purchased a new "audio boosterpack" board and tested it and

    audiohal_echo and i2secho run fine.

    It looks like my old Audio BoosterPack board is broken.

    Could you please let me know where to set the "CCLK pin" in the above settings?

    Thanks and best regards,


    JM KIM