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.

RTOS/EVMK2G: Enabling MCASP Frame Sync

 

 

Part Number: EVMK2G

Tool/software: TI-RTOS

Hello,

I'm using the EVMK2G and trying to configure the frame sync (FSR) for the MCASP 2 instance. However, when I put an oscilloscope on the pin (pin 18 , MCASP2FSR on JP1 "Audio expansion header") I see that the signal is always low.  I've changed all the parameters in the setup configs to enable the FSR to my knowledge but it still remains low.  I've attached my project and corresponding mcasp_drv.c files with the initialization parameters.  

Any insight into what I should be looking at or how I can get the FSR to work properly would be appreciated.

Thanks!

AudioExample.zip

mcasp_drv.c

  • Hi,

    I've notified the sw team. Their feedback will be posted here.

    Best Regards,
    Yordan
  • Francisco,

    We do provide an loopback example with the audio daughter card as part of the addon audk2g driver in the Processor SDK RTOS. You can locate this piece of software here:
    processors.wiki.ti.com/.../Processor_SDK_RTOS_AUDK2G_AddOn

    In the software package, this example is located under :
    pdk_k2g_x_x_x\packages\ti\addon\audk2g

    In order to use the pins on the expansion connector, users are required to change the mux mode that is applied by the default Board_init. Refer to the file evmC66x_pinmux.c and make sure that you have enabled the mux mode for the MCASP2 frame sync pin.

    Regards,
    Rahul
  • Thanks Rahul,

    I am actually working off that example and the code already chooses the MCASP 2 instance and sets up the correct muxmodes for all the pins in the configureAudio() function in the audioSample_main.c file.  The only difference is that I'm trying to drive from an internal source and not external. I'm able to change the bit clock just fine but I still cannot seem to get the frame sync to come alive.

    More info:
    I built the code by rebuilding the PDK examples using the following instructions processors.wiki.ti.com/.../Rebuilding_The_PDK . My command was "pdkProjectCreate.bat K2G EVMK2G little mcasp dsp" . The example I worked from was "MCASP_Audio_evmK2G_c66ExampleProject"  and lastly the RTOS version I'm using is 3.03.00.04.

  • Francisco,

    You will want to make sure that the AFSRCTL/AFSXCTL registers are set properly using the debugger. I have found that sometimes, despite changing the RTOS level code, the registers do not get set (bear in mind that I'm on a different platform). There are bits in these fields that set internal muxes to select between internal and external clock sources. See the TRM section 11.9.4.2.3 for the details. In particular, the FSXM/FSRM fields should be set properly.

    Hope this helps,

    Jeff